Spaces:
Runtime error
Runtime error
Harveenchadha
commited on
Commit
•
6135bab
1
Parent(s):
50f28bf
Update app.py
Browse files
app.py
CHANGED
@@ -31,5 +31,6 @@ txt_ouptut = grd.outputs.Textbox(type="auto", label="Translated text in Target L
|
|
31 |
example=[['I want to translate this sentence in Hindi','Hindi'],
|
32 |
['I am feeling very good today.', 'Bengali']]
|
33 |
|
34 |
-
|
|
|
35 |
iface.launch(enable_queue=True)
|
|
|
31 |
example=[['I want to translate this sentence in Hindi','Hindi'],
|
32 |
['I am feeling very good today.', 'Bengali']]
|
33 |
|
34 |
+
supp = ','.join(languages)
|
35 |
+
iface = grd.Interface(fn=translate, inputs=[txt,ddwn] , outputs=txt_ouptut, title='Translation for 11 Indic Languages', description = 'This is a demo based on IndicTrans. Languages Supported: '+supp, article = 'Original repo [link](https://github.com/AI4Bharat/indicTrans) by AI4Bharat. <b>Note: This space can only perform translation from English to Indic languages. Support for other combinations will be provided soon.', examples=example)
|
36 |
iface.launch(enable_queue=True)
|