Spaces:
Runtime error
Runtime error
Srinivasulu kethanaboina
commited on
Update app.py
Browse files
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 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
|
|
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()])
|