Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,9 +57,6 @@ print("2:", os.path.join(os.path.dirname(__file__), "example/test.mp4") )
|
|
| 57 |
|
| 58 |
#demo.queue().launch(debug=True)
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
def combine(a, b):
|
| 64 |
return a + " " + b
|
| 65 |
|
|
@@ -70,18 +67,16 @@ with gr.Blocks() as demo:
|
|
| 70 |
txt_3 = gr.Textbox(value="", label="Output")
|
| 71 |
btn = gr.Button(value="Submit")
|
| 72 |
|
| 73 |
-
btn.click(
|
| 74 |
|
| 75 |
gr.Markdown("## Text Examples")
|
| 76 |
gr.Examples(
|
| 77 |
[["hi", "h"], ["hello", "hell"]],
|
| 78 |
[txt, txt_2],
|
| 79 |
txt_3,
|
| 80 |
-
|
| 81 |
cache_examples=True,
|
| 82 |
)
|
| 83 |
|
| 84 |
-
|
| 85 |
if __name__ == "__main__":
|
| 86 |
demo.launch()
|
| 87 |
-
|
|
|
|
| 57 |
|
| 58 |
#demo.queue().launch(debug=True)
|
| 59 |
|
|
|
|
|
|
|
|
|
|
| 60 |
def combine(a, b):
|
| 61 |
return a + " " + b
|
| 62 |
|
|
|
|
| 67 |
txt_3 = gr.Textbox(value="", label="Output")
|
| 68 |
btn = gr.Button(value="Submit")
|
| 69 |
|
| 70 |
+
btn.click(combine, inputs=[txt,txt_2], outputs=[txt_3])
|
| 71 |
|
| 72 |
gr.Markdown("## Text Examples")
|
| 73 |
gr.Examples(
|
| 74 |
[["hi", "h"], ["hello", "hell"]],
|
| 75 |
[txt, txt_2],
|
| 76 |
txt_3,
|
| 77 |
+
combine,
|
| 78 |
cache_examples=True,
|
| 79 |
)
|
| 80 |
|
|
|
|
| 81 |
if __name__ == "__main__":
|
| 82 |
demo.launch()
|
|
|