Kumarkishalaya commited on
Commit
88a55f1
·
verified ·
1 Parent(s): e825783

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- # Remove the cached file if it exists
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)