Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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()
|