Spaces:
Build error
Build error
Commit
·
c0a0850
1
Parent(s):
25e3777
additional commits
Browse files
app.py
CHANGED
|
@@ -73,13 +73,13 @@ def get_translation(source_language,target_language,source_sentence=None,source_
|
|
| 73 |
|
| 74 |
|
| 75 |
title = "Interact with Masakhane Benchmark Models"
|
| 76 |
-
description = "This enables you to interact with some of the Masakhane Benchmark Models and keep up with their improvement. Some of these models undergo finetuning on a regular basis. This way, you can easily use the best with no hassles."
|
| 77 |
|
| 78 |
iface = gr.Interface(fn=get_translation,
|
| 79 |
inputs=[gr.inputs.Dropdown(choices = available_languages,default='English'),
|
| 80 |
gr.inputs.Dropdown(choices = available_languages,default='Swahili'),
|
| 81 |
gr.inputs.Textbox(label="Input"),
|
| 82 |
-
gr.inputs.File(file_count="single", type="file", label='
|
| 83 |
outputs=gr.outputs.Textbox(type="auto", label='Translation'),
|
| 84 |
title=title,
|
| 85 |
description=description,
|
|
|
|
| 73 |
|
| 74 |
|
| 75 |
title = "Interact with Masakhane Benchmark Models"
|
| 76 |
+
description = "This enables you to interact with some of the Masakhane Benchmark Models and keep up with their improvement. Some of these models undergo finetuning on a regular basis. This way, you can easily use the best model with no hassles."
|
| 77 |
|
| 78 |
iface = gr.Interface(fn=get_translation,
|
| 79 |
inputs=[gr.inputs.Dropdown(choices = available_languages,default='English'),
|
| 80 |
gr.inputs.Dropdown(choices = available_languages,default='Swahili'),
|
| 81 |
gr.inputs.Textbox(label="Input"),
|
| 82 |
+
gr.inputs.File(file_count="single", type="file", label='Or upload txt file containing sentences', optional=True)],
|
| 83 |
outputs=gr.outputs.Textbox(type="auto", label='Translation'),
|
| 84 |
title=title,
|
| 85 |
description=description,
|