Update app.py
Browse files
app.py
CHANGED
@@ -184,7 +184,7 @@ def create_ui(agent):
|
|
184 |
}
|
185 |
|
186 |
.gr-button.primary {
|
187 |
-
background-color: #
|
188 |
color: white;
|
189 |
font-weight: bold;
|
190 |
border-radius: 8px;
|
@@ -193,7 +193,7 @@ def create_ui(agent):
|
|
193 |
}
|
194 |
|
195 |
.gr-button.primary:hover {
|
196 |
-
background-color: #
|
197 |
}
|
198 |
|
199 |
.gr-chatbot, .gr-markdown, .gr-file-upload {
|
@@ -220,10 +220,11 @@ def create_ui(agent):
|
|
220 |
<h2>📄 CPS: Clinical Patient Support System</h2>
|
221 |
<p>CPS Assistant helps you analyze and summarize unstructured medical files using AI.</p>
|
222 |
""")
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
|
|
227 |
upload = gr.File(label="Upload Medical File", file_types=[".xlsx"])
|
228 |
analyze = gr.Button("🧠 Analyze", variant="primary")
|
229 |
download = gr.File(label="Download Report", visible=False, interactive=False)
|
|
|
184 |
}
|
185 |
|
186 |
.gr-button.primary {
|
187 |
+
background-color: #007bff;
|
188 |
color: white;
|
189 |
font-weight: bold;
|
190 |
border-radius: 8px;
|
|
|
193 |
}
|
194 |
|
195 |
.gr-button.primary:hover {
|
196 |
+
background-color: #0056b3;
|
197 |
}
|
198 |
|
199 |
.gr-chatbot, .gr-markdown, .gr-file-upload {
|
|
|
220 |
<h2>📄 CPS: Clinical Patient Support System</h2>
|
221 |
<p>CPS Assistant helps you analyze and summarize unstructured medical files using AI.</p>
|
222 |
""")
|
223 |
+
|
224 |
+
with gr.Column():
|
225 |
+
chatbot = gr.Chatbot(label="CPS Assistant", height=700, type="messages")
|
226 |
+
|
227 |
+
with gr.Column():
|
228 |
upload = gr.File(label="Upload Medical File", file_types=[".xlsx"])
|
229 |
analyze = gr.Button("🧠 Analyze", variant="primary")
|
230 |
download = gr.File(label="Download Report", visible=False, interactive=False)
|