Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ examples = [
|
|
90 |
['English', 'Urdu', 'Hi. nice to meet you']
|
91 |
]
|
92 |
|
93 |
-
gr.Interface(translation,
|
94 |
inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
|
95 |
gr.inputs.Dropdown(lang_codes, default='Korean', label='Target'),
|
96 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
@@ -99,6 +99,7 @@ gr.Interface(translation,
|
|
99 |
outputs = gr.outputs.JSON(),
|
100 |
title=title,
|
101 |
description=description,
|
102 |
-
)
|
|
|
103 |
|
104 |
|
|
|
90 |
['English', 'Urdu', 'Hi. nice to meet you']
|
91 |
]
|
92 |
|
93 |
+
demo = gr.Interface(translation,
|
94 |
inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
|
95 |
gr.inputs.Dropdown(lang_codes, default='Korean', label='Target'),
|
96 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
|
|
99 |
outputs = gr.outputs.JSON(),
|
100 |
title=title,
|
101 |
description=description,
|
102 |
+
)
|
103 |
+
demo.launch()
|
104 |
|
105 |
|