Spaces:
Build error
Build error
Commit
·
2153e72
1
Parent(s):
5e78dce
additional commits
Browse files
app.py
CHANGED
@@ -88,5 +88,22 @@ iface = gr.Interface(fn=get_translation,
|
|
88 |
['English','Igbo'],['English','Fon'],['English','Twi'],['Shona','English'],['Swahili','English'],
|
89 |
['Yoruba','English']],
|
90 |
enable_queue=True,
|
91 |
-
theme='
|
92 |
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
['English','Igbo'],['English','Fon'],['English','Twi'],['Shona','English'],['Swahili','English'],
|
89 |
['Yoruba','English']],
|
90 |
enable_queue=True,
|
91 |
+
theme='huggingface')
|
92 |
iface.launch()
|
93 |
+
|
94 |
+
iface2 = gr.Interface(fn=get_translation,
|
95 |
+
inputs=[gr.inputs.Dropdown(choices = available_languages,default='English'),
|
96 |
+
gr.inputs.Dropdown(choices = available_languages,default='Swahili'),
|
97 |
+
gr.inputs.Textbox(label="Input"),
|
98 |
+
gr.inputs.File(file_count="single", type="file", label='File with sentences', optional=True)],
|
99 |
+
outputs=gr.outputs.Textbox(type="auto", label='Translation'),
|
100 |
+
title=title,
|
101 |
+
description=description,
|
102 |
+
examples=[
|
103 |
+
['English','Swahili'],
|
104 |
+
['English','Afrikaans'],['English','Arabic'],['Efik','English'],['English','Hausa'],
|
105 |
+
['English','Igbo'],['English','Fon'],['English','Twi'],['Shona','English'],['Swahili','English'],
|
106 |
+
['Yoruba','English']],
|
107 |
+
enable_queue=True,
|
108 |
+
theme='huggingface')
|
109 |
+
iface2.launch()
|