Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as grad
|
|
| 4 |
mdl_name = "oddadmix/Masrawy2English-translator-opus-mt-tc-big-en-ar-2.9-openai-all"
|
| 5 |
# mdl = AutoModelForSeq2SeqLM.from_pretrained(mdl_name)
|
| 6 |
# my_tkn = AutoTokenizer.from_pretrained(mdl_name)
|
| 7 |
-
pipe = pipeline("translation", model=mdl_name, device = 'cuda'
|
| 8 |
|
| 9 |
@spaces.GPU
|
| 10 |
def translate(text):
|
|
|
|
| 4 |
mdl_name = "oddadmix/Masrawy2English-translator-opus-mt-tc-big-en-ar-2.9-openai-all"
|
| 5 |
# mdl = AutoModelForSeq2SeqLM.from_pretrained(mdl_name)
|
| 6 |
# my_tkn = AutoTokenizer.from_pretrained(mdl_name)
|
| 7 |
+
pipe = pipeline("translation", model=mdl_name, device = 'cuda')
|
| 8 |
|
| 9 |
@spaces.GPU
|
| 10 |
def translate(text):
|