Spaces:
Build error
Build error
Commit
·
d76e7c4
1
Parent(s):
ace9aa6
additional commits
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ iface = gr.Interface(fn=get_translation,
|
|
| 75 |
inputs=[gr.inputs.Dropdown(choices = available_languages,default='English'),
|
| 76 |
gr.inputs.Dropdown(choices = available_languages,default='Swahili'),
|
| 77 |
gr.inputs.Textbox(label="Input")],
|
| 78 |
-
gr.inputs.File(file_count="single", type="file", label='File with sentences', optional=True)
|
| 79 |
outputs=gr.outputs.Textbox(self, type="auto", label='Translation'),
|
| 80 |
title=title,
|
| 81 |
description=description,
|
|
@@ -84,6 +84,6 @@ iface = gr.Interface(fn=get_translation,
|
|
| 84 |
['English','Afrikaans'],['English','Arabic'],['Efik','English'],['English','Hausa'],
|
| 85 |
['English','Igbo'],['English','Fon'],['English','Twi'],['Shona','English'],['Swahili','English'],
|
| 86 |
['Yoruba','English']],
|
| 87 |
-
enable_queue=True
|
| 88 |
-
theme='darkdefault'
|
| 89 |
iface.launch()
|
|
|
|
| 75 |
inputs=[gr.inputs.Dropdown(choices = available_languages,default='English'),
|
| 76 |
gr.inputs.Dropdown(choices = available_languages,default='Swahili'),
|
| 77 |
gr.inputs.Textbox(label="Input")],
|
| 78 |
+
gr.inputs.File(file_count="single", type="file", label='File with sentences', optional=True),
|
| 79 |
outputs=gr.outputs.Textbox(self, type="auto", label='Translation'),
|
| 80 |
title=title,
|
| 81 |
description=description,
|
|
|
|
| 84 |
['English','Afrikaans'],['English','Arabic'],['Efik','English'],['English','Hausa'],
|
| 85 |
['English','Igbo'],['English','Fon'],['English','Twi'],['Shona','English'],['Swahili','English'],
|
| 86 |
['Yoruba','English']],
|
| 87 |
+
enable_queue=True,
|
| 88 |
+
theme='darkdefault')
|
| 89 |
iface.launch()
|