Spaces:
Build error
Build error
should resolve font-related console errors
Browse files- src/app.py +14 -3
src/app.py
CHANGED
@@ -230,7 +230,19 @@ def format_response_for_user(response_dict):
|
|
230 |
return message
|
231 |
|
232 |
# Build enhanced Gradio interface
|
233 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
gr.Markdown("""
|
235 |
# 🏥 Medical Symptom to ICD-10 Code Assistant
|
236 |
|
@@ -249,8 +261,7 @@ with gr.Blocks() as demo:
|
|
249 |
# Moved microphone row above chatbot
|
250 |
with gr.Row():
|
251 |
microphone = gr.Audio(
|
252 |
-
|
253 |
-
type="text", # Changed from filepath to text
|
254 |
label="Describe your symptoms",
|
255 |
streaming=True
|
256 |
)
|
|
|
230 |
return message
|
231 |
|
232 |
# Build enhanced Gradio interface
|
233 |
+
with gr.Blocks(
|
234 |
+
theme="default",
|
235 |
+
css="""
|
236 |
+
* {
|
237 |
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
238 |
+
Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
|
239 |
+
}
|
240 |
+
code, pre {
|
241 |
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
242 |
+
'Liberation Mono', 'Courier New', monospace;
|
243 |
+
}
|
244 |
+
"""
|
245 |
+
) as demo:
|
246 |
gr.Markdown("""
|
247 |
# 🏥 Medical Symptom to ICD-10 Code Assistant
|
248 |
|
|
|
261 |
# Moved microphone row above chatbot
|
262 |
with gr.Row():
|
263 |
microphone = gr.Audio(
|
264 |
+
type="filepath", # Use filepath to get the audio file path
|
|
|
265 |
label="Describe your symptoms",
|
266 |
streaming=True
|
267 |
)
|