Spaces:
Sleeping
Sleeping
Updated Dockerfile for Hugging Face Spaces deployment
Browse files- models/nllb.py +1 -3
- 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 |
-
|
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
|
|
|
|