Spaces:
Runtime error
Runtime error
Harveenchadha
commited on
Commit
•
ba7ff5e
1
Parent(s):
7e5faa0
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ import gradio as grd
|
|
21 |
from inference.engine import Model
|
22 |
indic2en_model = Model(expdir='indic-en')
|
23 |
en2indic_model = Model(expdir='en-indic')
|
24 |
-
indic2indic_model = Model(expdir='
|
25 |
|
26 |
INDIC = {"Assamese": "as", "Bengali": "bn", "Gujarati": "gu", "Hindi": "hi","Kannada": "kn","Malayalam": "ml", "Marathi": "mr", "Odia": "or","Punjabi": "pa","Tamil": "ta", "Telugu" : "te", "English": "en"}
|
27 |
|
@@ -48,5 +48,5 @@ example=[['मैं इस वाक्य का हिंदी में अ
|
|
48 |
['আজ আমার খুব ভালো লাগছে', 'Bengali' , 'Hindi']]
|
49 |
|
50 |
supp = ','.join(languages)
|
51 |
-
iface = grd.Interface(fn=translate, inputs=[txt,
|
52 |
iface.launch(enable_queue=True)
|
|
|
21 |
from inference.engine import Model
|
22 |
indic2en_model = Model(expdir='indic-en')
|
23 |
en2indic_model = Model(expdir='en-indic')
|
24 |
+
indic2indic_model = Model(expdir='m2m')
|
25 |
|
26 |
INDIC = {"Assamese": "as", "Bengali": "bn", "Gujarati": "gu", "Hindi": "hi","Kannada": "kn","Malayalam": "ml", "Marathi": "mr", "Odia": "or","Punjabi": "pa","Tamil": "ta", "Telugu" : "te", "English": "en"}
|
27 |
|
|
|
48 |
['আজ আমার খুব ভালো লাগছে', 'Bengali' , 'Hindi']]
|
49 |
|
50 |
supp = ','.join(languages)
|
51 |
+
iface = grd.Interface(fn=translate, inputs=[txt,ddwn_src,ddwn_tar] , 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 is an attempt to create open version of Translation for Indic languages. </b>', examples=example)
|
52 |
iface.launch(enable_queue=True)
|