Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,11 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
7 |
print(iface.get_config())
|
8 |
iface.launch()
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
+
iface = gr.Interface(
|
7 |
+
fn=greet,
|
8 |
+
inputs=[gr.Textbox(label="test"),
|
9 |
+
gr.Slider(minimum=10, maximum=20, value=15)],
|
10 |
+
outputs=gr.Image(label="Outputimage")
|
11 |
+
)
|
12 |
print(iface.get_config())
|
13 |
iface.launch()
|