Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,7 @@ def translate_text(text, name=None, progress=gr.Progress(track_tqdm=True)):
|
|
| 98 |
|
| 99 |
print(f"Translate....")
|
| 100 |
# Thực hiện dịch
|
| 101 |
-
output = t([text], beam_size=
|
| 102 |
return output[0]
|
| 103 |
|
| 104 |
except Exception as e:
|
|
|
|
| 98 |
|
| 99 |
print(f"Translate....")
|
| 100 |
# Thực hiện dịch
|
| 101 |
+
output = t([text], beam_size=2)
|
| 102 |
return output[0]
|
| 103 |
|
| 104 |
except Exception as e:
|