Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,13 +74,13 @@ with gr.Blocks() as demo:
|
|
| 74 |
btn = gr.Button(value="Submit")
|
| 75 |
btn.click(my_function, inputs=[input1,input2], outputs=output)
|
| 76 |
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
#demo = gr.Interface(
|
| 85 |
# my_function,
|
| 86 |
# gr.Textbox(),
|
|
|
|
| 74 |
btn = gr.Button(value="Submit")
|
| 75 |
btn.click(my_function, inputs=[input1,input2], outputs=output)
|
| 76 |
|
| 77 |
+
gr.Examples(
|
| 78 |
+
[["hi", "Adam"], ["hello", "Eve"]],
|
| 79 |
+
[input1, input2],
|
| 80 |
+
output,
|
| 81 |
+
my_function,
|
| 82 |
+
cache_examples=True,
|
| 83 |
+
)
|
| 84 |
#demo = gr.Interface(
|
| 85 |
# my_function,
|
| 86 |
# gr.Textbox(),
|