Ra-Is commited on
Commit
7875c2c
1 Parent(s): 6b277eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -22,8 +22,10 @@ def translate(text):
22
 
23
  return translation
24
 
25
- # Create the Gradio interface
26
- demo = gr.Interface(fn=translate, inputs="text", outputs="text")
 
 
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()