Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,10 @@ def translate(text):
|
|
22 |
|
23 |
return translation
|
24 |
|
25 |
-
# Create the Gradio interface
|
26 |
-
|
|
|
|
|
27 |
|
28 |
# Launch the Gradio app
|
29 |
demo.launch()
|
|
|
22 |
|
23 |
return translation
|
24 |
|
25 |
+
# Create the Gradio interface with a placeholder in the text box
|
26 |
+
textbox = gr.inputs.Textbox(placeholder="Enter english text to translate...")
|
27 |
+
|
28 |
+
demo = gr.Interface(fn=translate, inputs=textbox, outputs="text")
|
29 |
|
30 |
# Launch the Gradio app
|
31 |
demo.launch()
|