balaramas commited on
Commit
9726c95
1 Parent(s): 2cf7546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,4 +1,9 @@
1
  import gradio as gr
2
 
3
- # Load the model with no examples
4
- gr.Interface.load("models/balaramas/mbart-sahitrans_new_data").launch()
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ iface = gr.Interface(
4
+ fn="models/balaramas/mbart-sahitrans_new_data",
5
+ inputs=gr.Textbox(label="Enter text in Sanskrit", placeholder="Type here..."),
6
+ outputs=gr.Textbox(label="Translated Hindi Text"),
7
+ title="Sanskrit to Hindi Translator"
8
+ )
9
+ iface.launch()