Ali2206 commited on
Commit
6e4e750
·
verified ·
1 Parent(s): abd27cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -14
app.py CHANGED
@@ -84,7 +84,6 @@ Analyze the following clinical notes and provide a detailed, concise summary foc
84
  {chunk}
85
 
86
  ---
87
-
88
  Respond in well-structured bullet points with medical reasoning.
89
  """
90
 
@@ -165,26 +164,38 @@ def create_ui(agent):
165
  color: #e5e7eb;
166
  font-family: 'Inter', sans-serif;
167
  }
168
- .gr-button.primary {
169
- background: #2563eb;
170
- color: white;
171
- border-radius: 6px;
172
- border: none;
173
- font-weight: 600;
174
  }
175
- .gr-button.primary:hover {
176
- background: #1e40af;
 
 
177
  }
178
- .gr-chatbot {
179
  background-color: #1f2937;
180
- border: 1px solid #374151;
181
- border-radius: 10px;
182
- padding: 1rem;
183
  }
184
- .gr-file-upload {
185
  background-color: #1f2937;
186
  border: 1px solid #374151;
187
  border-radius: 8px;
 
 
 
 
 
 
 
 
 
 
 
188
  }
189
  """) as demo:
190
  gr.Markdown("""<h2 style='color:#60a5fa'>🩺 Patient History AI Assistant</h2><p>Upload a clinical Excel file and receive a structured diagnostic summary.</p>""")
 
84
  {chunk}
85
 
86
  ---
 
87
  Respond in well-structured bullet points with medical reasoning.
88
  """
89
 
 
164
  color: #e5e7eb;
165
  font-family: 'Inter', sans-serif;
166
  }
167
+ .message-avatar {
168
+ width: 38px;
169
+ height: 38px;
170
+ border-radius: 50%;
171
+ margin-right: 10px;
 
172
  }
173
+ .chat-message {
174
+ display: flex;
175
+ align-items: flex-start;
176
+ margin-bottom: 1rem;
177
  }
178
+ .message-bubble {
179
  background-color: #1f2937;
180
+ padding: 12px 16px;
181
+ border-radius: 12px;
182
+ max-width: 90%;
183
  }
184
+ .chat-input {
185
  background-color: #1f2937;
186
  border: 1px solid #374151;
187
  border-radius: 8px;
188
+ color: #e5e7eb;
189
+ padding: 0.75rem 1rem;
190
+ }
191
+ .gr-button.primary {
192
+ background: #2563eb;
193
+ color: white;
194
+ border-radius: 8px;
195
+ font-weight: 600;
196
+ }
197
+ .gr-button.primary:hover {
198
+ background: #1e40af;
199
  }
200
  """) as demo:
201
  gr.Markdown("""<h2 style='color:#60a5fa'>🩺 Patient History AI Assistant</h2><p>Upload a clinical Excel file and receive a structured diagnostic summary.</p>""")