Spaces:
Build error
Build error
Update app.py
Browse files14 unmodified lines151617181920212223242514 unmodified lineswith gr.Column(scale=2):text1 = gr.Textbox(lines=7, label="Prompt", scale=2)with gr.Row():btn1 = gr.Button("Submit", scale=1)btn2 = gr.Button("Clear", scale=1)btn3 = gr.Button("Clean Memory", scale=2)with gr.Column(scale=2):out_text = gr.Text(lines=15, label="Output", scale=2)btn1.click(fn=greet, inputs=[text1, stored_message], outputs=out_text)btn2.click(lambda: [None, None], outputs=[text1, out_text])btn3.click(fn=clear_memory, inputs=[stored_message], outputs=[out_text])14 unmodified lines151617181920212223242514 unmodified lineswith gr.Column(scale=2):text1 = gr.Textbox(lines=7, label="Prompt", scale=2)with gr.Row():btn1 = gr.Button("Submit", theme=gr.themes.Default(primary_hue=gr.themes.colors.red, secondary_hue=gr.themes.colors.pink), scale=1)btn2 = gr.Button("Clear", theme=gr.themes.Default(primary_hue=gr.themes.colors.green, secondary_hue=gr.themes.colors.pink), scale=1)btn3 = gr.Button("Clean Memory", theme=gr.themes.Default(primary_hue=gr.themes.colors.red, secondary_hue=gr.themes.colors.pink), scale=2)with gr.Column(scale=2):out_text = gr.Text(lines=15, label="Output", theme=gr.themes.Default(primary_hue=gr.themes.colors.gray) scale=2)btn1.click(fn=greet, inputs=[text1, stored_message], outputs=out_text)btn2.click(lambda: [None, None], outputs=[text1, out_text])btn3.click(fn=clear_memory, inputs=[stored_message], outputs=[out_text])
app.py+4-4