jon-fernandes commited on
Commit
7675bcf
·
verified ·
1 Parent(s): 0bd1a61

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -1,14 +1,14 @@
1
- import gradio as gr
2
 
3
- def echo_text(input_text):
4
- return f'You entered: {input_text}'
5
 
6
- interface = gr.Interface(
7
- fn=echo_text,
8
- inputs=gr.inputs.Textbox(lines=1, placeholder="Enter some text..."),
9
- outputs="text"
10
- )
11
 
12
- # Launch the Gradio app
13
- if __name__ == "__main__":
14
- interface.launch()
 
1
+ import gradio as gr
2
 
3
+ def echo_text(input_text):
4
+ return f'You entered: {input_text}'
5
 
6
+ interface = gr.Interface(
7
+ fn=echo_text,
8
+ inputs=gr.inputs.Textbox(lines=1, placeholder="Enter some text..."),
9
+ outputs="text"
10
+ )
11
 
12
+ # Launch the Gradio app
13
+ if __name__ == "__main__":
14
+ interface.launch()