Spaces:
Build error
Build error
Commit
·
61463dd
1
Parent(s):
fa5e9aa
additional commits
Browse files
app.py
CHANGED
@@ -66,8 +66,7 @@ def get_translation(source_language,target_language,source_sentence=None,source_
|
|
66 |
source = source_file.name
|
67 |
try:
|
68 |
|
69 |
-
params = load_model(source_language,target_language)
|
70 |
-
|
71 |
pred = translate(params,source,type_)
|
72 |
except Exception:
|
73 |
return f'There was an issue loading the translation model for {source_language} -> {target_language}. Try another pair please'
|
@@ -78,7 +77,7 @@ def get_translation(source_language,target_language,source_sentence=None,source_
|
|
78 |
|
79 |
|
80 |
title = "Interact with Masakhane Benchmark Models"
|
81 |
-
description = "This is a demo to enable you interact with some of the Masakhane Benchmark Models"
|
82 |
|
83 |
iface = gr.Interface(fn=get_translation,
|
84 |
inputs=[gr.inputs.Dropdown(choices = available_languages,default='English'),
|
|
|
66 |
source = source_file.name
|
67 |
try:
|
68 |
|
69 |
+
params = load_model(source_language,target_language)
|
|
|
70 |
pred = translate(params,source,type_)
|
71 |
except Exception:
|
72 |
return f'There was an issue loading the translation model for {source_language} -> {target_language}. Try another pair please'
|
|
|
77 |
|
78 |
|
79 |
title = "Interact with Masakhane Benchmark Models"
|
80 |
+
description = "This is a demo to enable you 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."
|
81 |
|
82 |
iface = gr.Interface(fn=get_translation,
|
83 |
inputs=[gr.inputs.Dropdown(choices = available_languages,default='English'),
|