Skip to content

Commit

Permalink
fix: update inference main, tflite docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nglehuy committed May 26, 2024
1 parent 63a400c commit c8d9f06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/tflite.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
## Conversion

```bash
python3 examples/train.py \
python3 examples/tflite.py \
--config-path=/path/to/config.yml.j2 \
--h5=/path/to/weight.h5 \
--bs=1 \ # Batch size
Expand Down
3 changes: 0 additions & 3 deletions examples/inferences/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ def main(
previous_decoder_states=model.get_initial_decoder_states(),
)
)
print(outputs.tokens)
transcript = tokenizer.detokenize(outputs.tokens)[0].numpy().decode("utf-8")

logger.info(f"Transcript: {transcript}")
return transcript


if __name__ == "__main__":
Expand Down

0 comments on commit c8d9f06

Please sign in to comment.