roll-ai commited on
Commit
042b017
·
verified ·
1 Parent(s): c1f4dc9

Update app.py

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