fix
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
def greet(
|
5 |
|
6 |
translation = pipeline("translation", model="Helsinki-NLP/opus-mt-en-hu")
|
7 |
-
|
8 |
text_translated=[]
|
9 |
for text in sentences1:
|
10 |
text_translated.append(translation(text))
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
def greet(sentences1):
|
5 |
|
6 |
translation = pipeline("translation", model="Helsinki-NLP/opus-mt-en-hu")
|
7 |
+
|
8 |
text_translated=[]
|
9 |
for text in sentences1:
|
10 |
text_translated.append(translation(text))
|