Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,11 +18,12 @@ def translate_urdu_to_english(text):
|
|
18 |
# Create the Gradio interface
|
19 |
iface = gr.Interface(
|
20 |
fn=translate_urdu_to_english,
|
21 |
-
inputs=gr.
|
22 |
-
outputs=gr.
|
23 |
title="Urdu to English Translation",
|
24 |
description="Enter Urdu text to get the English translation."
|
25 |
)
|
26 |
|
27 |
# Launch the app
|
28 |
iface.launch()
|
|
|
|
18 |
# Create the Gradio interface
|
19 |
iface = gr.Interface(
|
20 |
fn=translate_urdu_to_english,
|
21 |
+
inputs=gr.Textbox(label="Input Urdu Text"),
|
22 |
+
outputs=gr.Textbox(label="Translated English Text"),
|
23 |
title="Urdu to English Translation",
|
24 |
description="Enter Urdu text to get the English translation."
|
25 |
)
|
26 |
|
27 |
# Launch the app
|
28 |
iface.launch()
|
29 |
+
|