Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,9 @@ with gr.Blocks() as demo:
|
|
17 |
with gr.Row():
|
18 |
btn1 = gr.Button("Submit", theme=gr.themes.Default(primary_hue=gr.themes.colors.red, secondary_hue=gr.themes.colors.pink), scale=1)
|
19 |
btn2 = gr.Button("Clear", theme=gr.themes.Default(primary_hue=gr.themes.colors.green, secondary_hue=gr.themes.colors.pink), scale=1)
|
20 |
-
btn3 = gr.Button("Clean Memory", theme=gr.themes.Default(primary_hue=gr.themes.colors.
|
21 |
with gr.Column(scale=2):
|
22 |
-
out_text = gr.Text(lines=15, label="Output", theme=gr.themes.Default(primary_hue=gr.themes.colors.gray) scale=2)
|
23 |
btn1.click(fn=greet, inputs=[text1, stored_message], outputs=out_text)
|
24 |
btn2.click(lambda: [None, None], outputs=[text1, out_text])
|
25 |
btn3.click(fn=clear_memory, inputs=[stored_message], outputs=[out_text])
|
|
|
17 |
with gr.Row():
|
18 |
btn1 = gr.Button("Submit", theme=gr.themes.Default(primary_hue=gr.themes.colors.red, secondary_hue=gr.themes.colors.pink), scale=1)
|
19 |
btn2 = gr.Button("Clear", theme=gr.themes.Default(primary_hue=gr.themes.colors.green, secondary_hue=gr.themes.colors.pink), scale=1)
|
20 |
+
btn3 = gr.Button("Clean Memory", theme=gr.themes.Default(primary_hue=gr.themes.colors.orange, secondary_hue=gr.themes.colors.pink), scale=2)
|
21 |
with gr.Column(scale=2):
|
22 |
+
out_text = gr.Text(lines=15, label="Output", theme=gr.themes.Default(primary_hue=gr.themes.colors.gray), scale=2)
|
23 |
btn1.click(fn=greet, inputs=[text1, stored_message], outputs=out_text)
|
24 |
btn2.click(lambda: [None, None], outputs=[text1, out_text])
|
25 |
btn3.click(fn=clear_memory, inputs=[stored_message], outputs=[out_text])
|