ashourzadeh7
commited on
Update app.py
Browse files
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(
|
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,
|