Haider1396 commited on
Commit
adccfdd
·
verified ·
1 Parent(s): 1b216b3

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # Function to echo user input
4
+ def echo_input(user_input):
5
+ return user_input
6
+
7
+ # Create Gradio interface
8
+ iface = gr.Interface(
9
+ fn=echo_input,
10
+ inputs=gr.Textbox(label="Enter some text", placeholder="Type something..."),
11
+ outputs=gr.Textbox(label="You entered")
12
+ )
13
+
14
+ # Launch the app
15
+ iface.launch()