Update app.py
Browse files
app.py
CHANGED
@@ -173,9 +173,12 @@ def process_report(agent, file, messages: List[Dict[str, str]]) -> Tuple[List[Di
|
|
173 |
def create_ui(agent):
|
174 |
with gr.Blocks(css="""
|
175 |
html, body, .gradio-container {
|
176 |
-
background-color: #
|
177 |
font-family: 'Inter', sans-serif;
|
178 |
-
color: #
|
|
|
|
|
|
|
179 |
}
|
180 |
.gr-button.primary {
|
181 |
background-color: #1e88e5;
|
@@ -188,20 +191,27 @@ def create_ui(agent):
|
|
188 |
background-color: #1565c0;
|
189 |
}
|
190 |
.gr-chatbot, .gr-file-upload, .gr-markdown {
|
191 |
-
border-radius:
|
192 |
-
border: 1px solid #
|
193 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
}
|
195 |
""") as demo:
|
196 |
gr.Markdown("""
|
197 |
-
<h2
|
198 |
-
<p
|
199 |
""")
|
200 |
with gr.Row():
|
201 |
with gr.Column(scale=3):
|
202 |
-
chatbot = gr.Chatbot(label="Assistant", height=700, type="messages")
|
203 |
with gr.Column(scale=1):
|
204 |
-
upload = gr.File(label="Upload
|
205 |
analyze = gr.Button("🧠 Analyze", variant="primary")
|
206 |
download = gr.File(label="Download Report", visible=False, interactive=False)
|
207 |
|
|
|
173 |
def create_ui(agent):
|
174 |
with gr.Blocks(css="""
|
175 |
html, body, .gradio-container {
|
176 |
+
background-color: #0e1621;
|
177 |
font-family: 'Inter', sans-serif;
|
178 |
+
color: #ffffff;
|
179 |
+
}
|
180 |
+
h2, p {
|
181 |
+
color: #89b4fa;
|
182 |
}
|
183 |
.gr-button.primary {
|
184 |
background-color: #1e88e5;
|
|
|
191 |
background-color: #1565c0;
|
192 |
}
|
193 |
.gr-chatbot, .gr-file-upload, .gr-markdown {
|
194 |
+
border-radius: 12px;
|
195 |
+
border: 1px solid #2a2f45;
|
196 |
+
background-color: #1b2533;
|
197 |
+
color: #e3e3e3;
|
198 |
+
}
|
199 |
+
.gr-file-upload .file-name, .gr-markdown {
|
200 |
+
font-size: 14px;
|
201 |
+
}
|
202 |
+
.gr-chatbot .message {
|
203 |
+
font-size: 15px;
|
204 |
}
|
205 |
""") as demo:
|
206 |
gr.Markdown("""
|
207 |
+
<h2>📄 CPS: Clinical Patient Support System</h2>
|
208 |
+
<p>CPS Assistant helps you summarize medical files with AI analysis.</p>
|
209 |
""")
|
210 |
with gr.Row():
|
211 |
with gr.Column(scale=3):
|
212 |
+
chatbot = gr.Chatbot(label="CPS Assistant", height=700, type="messages")
|
213 |
with gr.Column(scale=1):
|
214 |
+
upload = gr.File(label="Upload Medical File", file_types=[".xlsx"])
|
215 |
analyze = gr.Button("🧠 Analyze", variant="primary")
|
216 |
download = gr.File(label="Download Report", visible=False, interactive=False)
|
217 |
|