Spaces:
Runtime error
Runtime error
Thomas Simonini
commited on
Commit
·
91f2497
1
Parent(s):
d0ca94f
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
|
| 4 |
-
def
|
| 5 |
return "Hello " + name + "!!"
|
| 6 |
|
| 7 |
-
iface = gr.Interface(fn=
|
| 8 |
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
|
| 4 |
+
def replay(name):
|
| 5 |
return "Hello " + name + "!!"
|
| 6 |
|
| 7 |
+
iface = gr.Interface(fn=replay, inputs=[gr.inputs.Textbox(self, lines=1, placeholder=None, default="", label="Model Id"), gr.inputs.Radio(["add", "subtract", "multiply", "divide"]), "number"], outputs="text")
|
| 8 |
iface.launch()
|