Spaces:
Runtime error
Runtime error
Update app.py
#5
by
shrusti333
- opened
app.py
CHANGED
|
@@ -1,8 +1,15 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
iface = gr.Interface(fn=
|
| 7 |
iface.launch()
|
| 8 |
#
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def translate_to_Konkani(sent):
|
| 4 |
+
|
| 5 |
+
input_text = sent.split(',')
|
| 6 |
+
output_texts=""
|
| 7 |
+
for x in input_text:
|
| 8 |
+
|
| 9 |
+
output_texts+=" "+ x
|
| 10 |
+
|
| 11 |
+
return output_texts
|
| 12 |
|
| 13 |
+
iface = gr.Interface(fn=translate_to_Konkani, inputs="text", outputs="text")
|
| 14 |
iface.launch()
|
| 15 |
#
|