Rohith1112 commited on
Commit
26a3610
·
verified ·
1 Parent(s): 7fd41e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -8
app.py CHANGED
@@ -79,18 +79,30 @@ def upload_image(image):
79
  return "Image uploaded and processed successfully!", extracted_image_path
80
 
81
  # Gradio UI
82
- with gr.Blocks(theme=gr.themes.Soft()) as chat_ui:
83
- gr.Markdown("## ICliniq AI-Powered Medical Image Analysis Workspace")
84
-
85
  with gr.Row():
86
- with gr.Column(scale=1):
87
- chat_list = gr.Chatbot(value=[], label="Chat History", elem_id="chat-history")
 
 
 
 
 
 
 
 
 
 
 
88
 
89
- with gr.Column(scale=2):
 
 
 
90
  uploaded_image = gr.File(label="Upload .npy Image", type="filepath")
91
  upload_status = gr.Textbox(label="Status", interactive=False)
92
- extracted_image = gr.Image(label="Extracted Images", type="filepath")
93
- question_input = gr.Textbox(label="Ask a question", placeholder="Ask something about the image...", lines=2)
94
  submit_button = gr.Button("Send")
95
 
96
  # Upload and Processing Interactions
 
79
  return "Image uploaded and processed successfully!", extracted_image_path
80
 
81
  # Gradio UI
82
+ with gr.Blocks(theme="soft") as chat_ui:
 
 
83
  with gr.Row():
84
+ # Sidebar
85
+ with gr.Column(scale=1, min_width=200):
86
+ gr.Markdown("### ChatGPT Menu")
87
+ gr.Markdown("#### Today")
88
+ gr.Markdown("- Permission error fix")
89
+ gr.Markdown("#### Yesterday")
90
+ gr.Markdown("- Invalid Characters Fix")
91
+ gr.Markdown("- Machi UI Design Request")
92
+ gr.Markdown("- UI Design Summary")
93
+ gr.Markdown("#### Previous 7 Days")
94
+ gr.Markdown("- Uber and Netflix BI Visualization")
95
+ gr.Markdown("#### Upgrade Plan")
96
+ gr.Markdown("More access to the best models")
97
 
98
+ # Main chat area
99
+ with gr.Column(scale=4):
100
+ gr.Markdown("### ICliniq AI-Powered Medical Image Analysis")
101
+ chat_list = gr.Chatbot(value=[], label="Chat History", elem_id="chat-history")
102
  uploaded_image = gr.File(label="Upload .npy Image", type="filepath")
103
  upload_status = gr.Textbox(label="Status", interactive=False)
104
+ extracted_image = gr.Image(label="Extracted Images")
105
+ question_input = gr.Textbox(label="Ask a question", placeholder="Ask something about the image...")
106
  submit_button = gr.Button("Send")
107
 
108
  # Upload and Processing Interactions