Spaces:
Runtime error
Runtime error
Thomas Simonini
commited on
Commit
·
90f838f
1
Parent(s):
907c415
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,5 +4,13 @@ import gradio as gr
|
|
| 4 |
def replay(name):
|
| 5 |
return "Hello " + name + "!!"
|
| 6 |
|
| 7 |
-
iface = gr.Interface(fn=replay, inputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
iface.launch()
|
|
|
|
| 4 |
def replay(name):
|
| 5 |
return "Hello " + name + "!!"
|
| 6 |
|
| 7 |
+
iface = gr.Interface(fn=replay, inputs=[
|
| 8 |
+
gr.inputs.Textbox(lines=1, placeholder=None, default="", label="Model Id: "),
|
| 9 |
+
gr.inputs.Textbox(lines=1, placeholder=None, default="", label="Filename: "),
|
| 10 |
+
gr.inputs.Textbox(lines=1, placeholder=None, default="", label="Environment: "),
|
| 11 |
+
gradio.inputs.Checkbox(default=False, label="Evaluate?: ")
|
| 12 |
+
]
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
, outputs="text")
|
| 16 |
iface.launch()
|