Replace Model
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
pipe = pipeline("translation", model="
|
6 |
|
7 |
|
8 |
def translate(text):
|
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-zh")
|
6 |
|
7 |
|
8 |
def translate(text):
|