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

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +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()