ashourzadeh7
commited on
Commit
•
d92a459
1
Parent(s):
b220179
Update app.py
Browse files
app.py
CHANGED
@@ -78,12 +78,12 @@ def add_line(input_path, output_path):
|
|
78 |
if __name__ == '__main__':
|
79 |
print('\tinit models')
|
80 |
|
81 |
-
|
82 |
|
83 |
-
|
84 |
|
85 |
interface = gr.Interface(
|
86 |
-
fn=
|
87 |
inputs=[
|
88 |
gr.components.File(label="Input File"),
|
89 |
gr.components.Textbox(label="Output File Name (optional)"),
|
|
|
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,
|
87 |
inputs=[
|
88 |
gr.components.File(label="Input File"),
|
89 |
gr.components.Textbox(label="Output File Name (optional)"),
|