Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,9 +28,7 @@ model_nmt = TFAutoModelForSeq2SeqLM.from_pretrained(model_checkpoint)
|
|
28 |
# Loading models, tokenizer & variables for trained LSTM translation model.
|
29 |
repo_id = "Kumarkishalaya/lstm-eng-to-hin"
|
30 |
lstm_filename = "seq2seq_model.keras"
|
31 |
-
|
32 |
-
if os.path.exists(lstm_model_path):
|
33 |
-
os.remove(lstm_model_path)
|
34 |
|
35 |
# Re-download the file
|
36 |
lstm_model_path = hf_hub_download(repo_id=repo_id, filename=lstm_filename, force_download=True)
|
|
|
28 |
# Loading models, tokenizer & variables for trained LSTM translation model.
|
29 |
repo_id = "Kumarkishalaya/lstm-eng-to-hin"
|
30 |
lstm_filename = "seq2seq_model.keras"
|
31 |
+
|
|
|
|
|
32 |
|
33 |
# Re-download the file
|
34 |
lstm_model_path = hf_hub_download(repo_id=repo_id, filename=lstm_filename, force_download=True)
|