Spaces:
Build error
Build error
Create app.py
Browse files
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()
|