TurtleLiu commited on
Commit
e845379
1 Parent(s): 8117850

Replace Model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
 
3
  from transformers import pipeline
4
 
5
- pipe = pipeline("translation", model="t5-base")
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):