Srinivasulu kethanaboina commited on
Commit
389e31c
·
verified ·
1 Parent(s): 0384e23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -172,10 +172,12 @@ div.progress-text.svelte-z7cif2.meta-text {display: none;}
172
 
173
  # Use Gradio Blocks to wrap components
174
  with gr.Blocks(css=css) as demo:
175
- chat = gr.ChatInterface(chat_interface, clear_btn=None, undo_btn=None, retry_btn=None)
176
-
177
- # Button to retrieve history and redirect
178
- redirect_button = gr.Button("Close Chat")
 
 
179
 
180
  # Connect the button with the function, and handle the redirection
181
  redirect_button.click(fn=retrieve_history_and_redirect, inputs=[gr.State()])
 
172
 
173
  # Use Gradio Blocks to wrap components
174
  with gr.Blocks(css=css) as demo:
175
+ with gr.Row(): # Align horizontally in the same row
176
+ with gr.Column(scale=8): # 80% for chat interface
177
+ chat = gr.ChatInterface(chat_interface, clear_btn=None, undo_btn=None, retry_btn=None)
178
+
179
+ with gr.Column(scale=2): # 20% for custom button
180
+ redirect_button = gr.Button("Close Chat")
181
 
182
  # Connect the button with the function, and handle the redirection
183
  redirect_button.click(fn=retrieve_history_and_redirect, inputs=[gr.State()])