Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,9 @@
|
|
|
|
1 |
import sys, os, json, shutil, re, time, gc, hashlib
|
2 |
import pandas as pd
|
3 |
from datetime import datetime
|
4 |
from typing import List, Tuple, Dict, Union
|
5 |
-
|
6 |
import gradio as gr
|
7 |
-
|
8 |
from concurrent.futures import ThreadPoolExecutor
|
9 |
|
10 |
# Constants
|
@@ -174,38 +173,39 @@ 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,
|
181 |
color: #89b4fa;
|
|
|
182 |
}
|
183 |
.gr-button.primary {
|
184 |
background-color: #1e88e5;
|
185 |
color: white;
|
186 |
-
font-weight:
|
187 |
-
border-radius:
|
188 |
-
padding: 0.
|
189 |
}
|
190 |
.gr-button.primary:hover {
|
191 |
background-color: #1565c0;
|
192 |
}
|
193 |
-
.gr-chatbot, .gr-
|
194 |
border-radius: 12px;
|
195 |
-
border: 1px solid #2a2f45;
|
196 |
background-color: #1b2533;
|
197 |
-
|
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
|
209 |
""")
|
210 |
with gr.Row():
|
211 |
with gr.Column(scale=3):
|
|
|
1 |
+
# app.py
|
2 |
import sys, os, json, shutil, re, time, gc, hashlib
|
3 |
import pandas as pd
|
4 |
from datetime import datetime
|
5 |
from typing import List, Tuple, Dict, Union
|
|
|
6 |
import gradio as gr
|
|
|
7 |
from concurrent.futures import ThreadPoolExecutor
|
8 |
|
9 |
# Constants
|
|
|
173 |
with gr.Blocks(css="""
|
174 |
html, body, .gradio-container {
|
175 |
background-color: #0e1621;
|
176 |
+
color: #e0e0e0;
|
177 |
font-family: 'Inter', sans-serif;
|
|
|
178 |
}
|
179 |
+
h2, h3, h4 {
|
180 |
color: #89b4fa;
|
181 |
+
font-weight: 600;
|
182 |
}
|
183 |
.gr-button.primary {
|
184 |
background-color: #1e88e5;
|
185 |
color: white;
|
186 |
+
font-weight: bold;
|
187 |
+
border-radius: 8px;
|
188 |
+
padding: 0.65em 1.2em;
|
189 |
}
|
190 |
.gr-button.primary:hover {
|
191 |
background-color: #1565c0;
|
192 |
}
|
193 |
+
.gr-chatbot, .gr-markdown, .gr-file-upload {
|
194 |
border-radius: 12px;
|
|
|
195 |
background-color: #1b2533;
|
196 |
+
border: 1px solid #2a2f45;
|
|
|
|
|
|
|
197 |
}
|
198 |
.gr-chatbot .message {
|
199 |
font-size: 15px;
|
200 |
+
line-height: 1.6;
|
201 |
+
}
|
202 |
+
.gr-file-upload .file-name {
|
203 |
+
font-size: 14px;
|
204 |
}
|
205 |
""") as demo:
|
206 |
gr.Markdown("""
|
207 |
<h2>📄 CPS: Clinical Patient Support System</h2>
|
208 |
+
<p>CPS Assistant helps you analyze and summarize unstructured medical files using AI.</p>
|
209 |
""")
|
210 |
with gr.Row():
|
211 |
with gr.Column(scale=3):
|