ashourzadeh7 commited on
Commit
307f292
·
verified ·
1 Parent(s): d92a459

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -54,7 +54,7 @@ def file_translate(sorce_file_path, pred_file_path):
54
 
55
  pred_list = []
56
  for line in sorce_list:
57
- pred_list.append(translate(line, list(langs_dict.keys())[0], list(langs_dict.keys())[1]))
58
 
59
  with open(pred_file_path, "w", encoding="utf-8") as output_file:
60
  for translation in pred_list:
@@ -78,9 +78,9 @@ def add_line(input_path, output_path):
78
  if __name__ == '__main__':
79
  print('\tinit models')
80
 
81
- global model_dict
82
 
83
- model_dict = load_models()
84
 
85
  interface = gr.Interface(
86
  fn=file_translate,
 
54
 
55
  pred_list = []
56
  for line in sorce_list:
57
+ pred_list.append(line + "Hi")
58
 
59
  with open(pred_file_path, "w", encoding="utf-8") as output_file:
60
  for translation in pred_list:
 
78
  if __name__ == '__main__':
79
  print('\tinit models')
80
 
81
+ #global model_dict
82
 
83
+ #model_dict = load_models()
84
 
85
  interface = gr.Interface(
86
  fn=file_translate,