huynguyen208 commited on
Commit
cf58dd3
1 Parent(s): 2c49f9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ model_checkpoint = "huynguyen208/fantastic4-finetuned-vi-to-en-PhoMT-demo"
6
  translator = pipeline("translation", model=model_checkpoint)
7
 
8
  def translate(Vietnamese):
9
- return translator(Vietnamese)#[0]['translation_text']
10
 
11
  iface = gr.Interface(fn=translate,
12
  inputs=["text"],
 
6
  translator = pipeline("translation", model=model_checkpoint)
7
 
8
  def translate(Vietnamese):
9
+ return translator(Vietnamese)[0]['translation_text']
10
 
11
  iface = gr.Interface(fn=translate,
12
  inputs=["text"],