mrbui1990 commited on
Commit
dd7ccad
·
verified ·
1 Parent(s): 62b0fd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=4)
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: