Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name):
|
4 |
+
return f"Hello, {name}!"
|
5 |
+
|
6 |
+
iface = gr.Interface(
|
7 |
+
fn=greet,
|
8 |
+
inputs=gr.Textbox(label="Enter your name"),
|
9 |
+
outputs=gr.Textbox(label="Greeting"),
|
10 |
+
title="Simple Gradio App"
|
11 |
+
)
|
12 |
+
|
13 |
+
iface.launch(server_name="0.0.0.0", server_port=7860)
|