update the app.py which uses the plus model
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ import os
|
|
22 |
# interface = gr.Interface(fn=en2zh, inputs="list", outputs="list")
|
23 |
# interface.launch()
|
24 |
|
25 |
-
translator = pipeline("translation", model=os.path.join(os.getcwd(),"test-ml-trained"), max_time=5)
|
26 |
# text-text
|
27 |
def en2zh(text):
|
28 |
pres=[]
|
|
|
22 |
# interface = gr.Interface(fn=en2zh, inputs="list", outputs="list")
|
23 |
# interface.launch()
|
24 |
|
25 |
+
translator = pipeline("translation", model=os.path.join(os.getcwd(),"test-ml-trained+"), max_time=5)
|
26 |
# text-text
|
27 |
def en2zh(text):
|
28 |
pres=[]
|