AashitaK commited on
Commit
2e62971
·
verified ·
1 Parent(s): 3531378

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -92,13 +92,13 @@ with gr.Blocks() as demo:
92
 
93
  # Place Reset on the Left and Submit on the Right
94
  with gr.Row():
95
- # Reset button with secondary (gray) color
96
- reset = gr.Button(chatbot_reset_button, variant="secondary")
97
- # Spacer to push Submit to the right
98
- gr.Spacer()
99
- # Submit button with primary (blue) color
100
- submit = gr.Button(chatbot_submit_button, variant="primary")
101
-
102
  # Define button click actions
103
  submit.click(fn=chatbot, inputs=user_input, outputs=output)
104
  reset.click(fn=reset_output, inputs=None, outputs=output)
 
92
 
93
  # Place Reset on the Left and Submit on the Right
94
  with gr.Row():
95
+ # Left Column for Reset
96
+ with gr.Column(scale=1):
97
+ reset = gr.Button(chatbot_reset_button, variant="secondary")
98
+ # Right Column for Submit
99
+ with gr.Column(scale=1):
100
+ submit = gr.Button(chatbot_submit_button, variant="primary")
101
+
102
  # Define button click actions
103
  submit.click(fn=chatbot, inputs=user_input, outputs=output)
104
  reset.click(fn=reset_output, inputs=None, outputs=output)