Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def translate(model,text, src_lang, tgt_lang, max_length=400):
|
|
36 |
gr.Interface(
|
37 |
translate,
|
38 |
[
|
39 |
-
gr.components.Dropdown(label="choose a model",choices=MODELS)
|
40 |
gr.components.Textbox(label="Text"),
|
41 |
gr.components.Dropdown(label="Source Language", choices=LANGS),
|
42 |
gr.components.Dropdown(label="Target Language", choices=LANGS),
|
@@ -46,7 +46,7 @@ gr.Interface(
|
|
46 |
#examples=examples,
|
47 |
# article=article,
|
48 |
cache_examples=False,
|
49 |
-
title="Finetuned-NLLB
|
50 |
#description=description
|
51 |
).launch()
|
52 |
|
|
|
36 |
gr.Interface(
|
37 |
translate,
|
38 |
[
|
39 |
+
gr.components.Dropdown(label="choose a model",choices=MODELS),
|
40 |
gr.components.Textbox(label="Text"),
|
41 |
gr.components.Dropdown(label="Source Language", choices=LANGS),
|
42 |
gr.components.Dropdown(label="Target Language", choices=LANGS),
|
|
|
46 |
#examples=examples,
|
47 |
# article=article,
|
48 |
cache_examples=False,
|
49 |
+
title="Finetuned-NLLB",
|
50 |
#description=description
|
51 |
).launch()
|
52 |
|