CultriX commited on
Commit
9a33663
·
verified ·
1 Parent(s): c2c827a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -379,10 +379,10 @@ with gr.Blocks(theme="CultriX/gradio-theme", css=css, delete_cache=(60, 60)) as
379
  gr.Markdown("## Multi-Agent Task Solver with Human-in-the-Loop")
380
 
381
  with gr.Row():
382
- # Wrap the Chatbot in a div with the class "chat-container"
383
- with gr.Column(): # Add a column for better layout
384
- with gr.Box(elem_classes="chat-container"): # Use gr.Box for styling
385
- chat_output = gr.Chatbot(label="Conversation", type="messages")
386
 
387
  # Hidden state to store the plain-text log.
388
  log_state = gr.State(value="")
@@ -403,5 +403,4 @@ with gr.Blocks(theme="CultriX/gradio-theme", css=css, delete_cache=(60, 60)) as
403
  download_button.click(fn=download_log, inputs=log_state, outputs=download_file)
404
 
405
  if __name__ == "__main__":
406
- demo.launch(share=True)
407
-
 
379
  gr.Markdown("## Multi-Agent Task Solver with Human-in-the-Loop")
380
 
381
  with gr.Row():
382
+ with gr.Column(): # Add a column for better layout
383
+ chat_output = gr.Chatbot(label="Conversation", type="messages")
384
+ chat_output.wrap = gr.HTML("<div class='chat-container'></div>") # Wrap after creation
385
+
386
 
387
  # Hidden state to store the plain-text log.
388
  log_state = gr.State(value="")
 
403
  download_button.click(fn=download_log, inputs=log_state, outputs=download_file)
404
 
405
  if __name__ == "__main__":
406
+ demo.launch(share=True)