Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as grad
|
3 |
|
4 |
-
model_name = "Helsinki-NLP/opus-mt-
|
5 |
opus_translator = pipeline("translation", model=model_name)
|
6 |
|
7 |
def translate(text):
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as grad
|
3 |
|
4 |
+
model_name = "Helsinki-NLP/opus-mt-ko-en"
|
5 |
opus_translator = pipeline("translation", model=model_name)
|
6 |
|
7 |
def translate(text):
|