Update app.py
Browse files
app.py
CHANGED
@@ -183,17 +183,18 @@ def create_ui(agent):
|
|
183 |
font-weight: 600;
|
184 |
}
|
185 |
|
186 |
-
.gr-button
|
187 |
-
background-color: #007bff;
|
188 |
-
color: white;
|
189 |
font-weight: bold;
|
190 |
-
border-radius: 8px;
|
191 |
-
padding: 0.65em 1.2em;
|
192 |
-
font-size: 16px;
|
|
|
193 |
}
|
194 |
|
195 |
-
.gr-button
|
196 |
-
background-color: #0056b3;
|
197 |
}
|
198 |
|
199 |
.gr-chatbot, .gr-markdown, .gr-file-upload {
|
@@ -224,10 +225,9 @@ def create_ui(agent):
|
|
224 |
with gr.Column():
|
225 |
chatbot = gr.Chatbot(label="CPS Assistant", height=700, type="messages")
|
226 |
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
download = gr.File(label="Download Report", visible=False, interactive=False)
|
231 |
|
232 |
state = gr.State(value=[])
|
233 |
|
|
|
183 |
font-weight: 600;
|
184 |
}
|
185 |
|
186 |
+
button.gr-button-primary {
|
187 |
+
background-color: #007bff !important;
|
188 |
+
color: white !important;
|
189 |
font-weight: bold;
|
190 |
+
border-radius: 8px !important;
|
191 |
+
padding: 0.65em 1.2em !important;
|
192 |
+
font-size: 16px !important;
|
193 |
+
border: none;
|
194 |
}
|
195 |
|
196 |
+
button.gr-button-primary:hover {
|
197 |
+
background-color: #0056b3 !important;
|
198 |
}
|
199 |
|
200 |
.gr-chatbot, .gr-markdown, .gr-file-upload {
|
|
|
225 |
with gr.Column():
|
226 |
chatbot = gr.Chatbot(label="CPS Assistant", height=700, type="messages")
|
227 |
|
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)
|
|
|
231 |
|
232 |
state = gr.State(value=[])
|
233 |
|