yalsaffar commited on
Commit
3f89b0f
1 Parent(s): e1c3caf

Updated Dockerfile for Hugging Face Spaces deployment

Browse files
Files changed (2) hide show
  1. models/nllb.py +1 -3
  2. status.txt +0 -1
models/nllb.py CHANGED
@@ -27,9 +27,7 @@ def nllb():
27
  # Load models
28
  tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-200-distilled-1.3B")
29
  model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-distilled-1.3B").to(device)
30
- # write done to the file named status.txt
31
- with open("status.txt", 'w') as f:
32
- f.write("done")
33
  return model, tokenizer
34
 
35
  def nllb_translate(model, tokenizer, article, language):
 
27
  # Load models
28
  tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-200-distilled-1.3B")
29
  model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-distilled-1.3B").to(device)
30
+
 
 
31
  return model, tokenizer
32
 
33
  def nllb_translate(model, tokenizer, article, language):
status.txt DELETED
@@ -1 +0,0 @@
1
- done