mohammad2928git commited on
Commit
5e2aaef
·
verified ·
1 Parent(s): 877e57c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -15,11 +15,11 @@ with gr.Blocks() as demo:
15
  with gr.Column(scale=2):
16
  text1 = gr.Textbox(lines=7, label="Prompt", scale=2)
17
  with gr.Row():
18
- btn1 = gr.Button("Submit", scale=1)
19
- btn2 = gr.Button("Clear", scale=1)
20
- btn3 = gr.Button("Clean Memory", scale=2)
21
  with gr.Column(scale=2):
22
- out_text = gr.Text(lines=15, label="Output", 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])
 
15
  with gr.Column(scale=2):
16
  text1 = gr.Textbox(lines=7, label="Prompt", scale=2)
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.red, 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])