Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
2 |
import gradio as gr
|
3 |
|
4 |
-
tokenizer = AutoTokenizer.from_pretrained("PRAli22/arat5-
|
5 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("PRAli22/arat5-
|
6 |
|
7 |
def translate(source):
|
8 |
|
|
|
1 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
2 |
import gradio as gr
|
3 |
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained("PRAli22/arat5-arabic-dialects-translation" )
|
5 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("PRAli22/arat5-arabic-dialects-translation")
|
6 |
|
7 |
def translate(source):
|
8 |
|