dolphinium commited on
Commit
2cabd2d
Β·
1 Parent(s): eddfbb6

move the "start new analysis button" to rop right corner to avoid confusion.

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -680,15 +680,18 @@ def process_analysis_flow(user_input, history, state):
680
  with gr.Blocks(theme=gr.themes.Soft(), css="footer {display: none !important}") as demo:
681
  state = gr.State()
682
 
683
- gr.Markdown("# πŸ’Š PharmaCircle AI Data Analyst")
 
 
 
 
 
684
  gr.Markdown("Ask a question to begin your analysis. I will generate a Solr query, retrieve the data, create a visualization, and write a report. You can then ask follow-up questions freely.")
685
 
686
  with gr.Row():
687
  with gr.Column(scale=1):
688
  chatbot = gr.Chatbot(label="Analysis Chat Log", height=700, show_copy_button=True)
689
  msg_textbox = gr.Textbox(placeholder="Ask a question, e.g., 'Show me the top 5 companies by total deal value in 2023'", label="Your Question", interactive=True)
690
- with gr.Row():
691
- clear_button = gr.Button("πŸ”„ Start New Analysis", variant="primary")
692
 
693
  with gr.Column(scale=2):
694
  with gr.Accordion("Generated Solr Query", open=False):
 
680
  with gr.Blocks(theme=gr.themes.Soft(), css="footer {display: none !important}") as demo:
681
  state = gr.State()
682
 
683
+ with gr.Row():
684
+ with gr.Column(scale=4):
685
+ gr.Markdown("# πŸ’Š PharmaCircle AI Data Analyst")
686
+ with gr.Column(scale=1):
687
+ clear_button = gr.Button("πŸ”„ Start New Analysis", variant="primary")
688
+
689
  gr.Markdown("Ask a question to begin your analysis. I will generate a Solr query, retrieve the data, create a visualization, and write a report. You can then ask follow-up questions freely.")
690
 
691
  with gr.Row():
692
  with gr.Column(scale=1):
693
  chatbot = gr.Chatbot(label="Analysis Chat Log", height=700, show_copy_button=True)
694
  msg_textbox = gr.Textbox(placeholder="Ask a question, e.g., 'Show me the top 5 companies by total deal value in 2023'", label="Your Question", interactive=True)
 
 
695
 
696
  with gr.Column(scale=2):
697
  with gr.Accordion("Generated Solr Query", open=False):