rivapereira123 commited on
Commit
bf95bdb
·
verified ·
1 Parent(s): 768c8b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -13
app.py CHANGED
@@ -135,14 +135,10 @@ def create_optimized_gradio_interface():
135
  font-size: 1.1rem;
136
  }
137
 
138
- .highlight-flash {
139
- animation: flash-highlight 1.6s ease-in-out;
140
- }
141
- @keyframes flash-highlight {
142
- 0% { background-color: #fffbc2; }
143
- 50% { background-color: #fce675; }
144
- 100% { background-color: transparent; }
145
- }
146
 
147
  """,
148
  title="🏥 Optimized Gaza First Aid Assistant",
@@ -183,7 +179,7 @@ def create_optimized_gradio_interface():
183
  with gr.Row(elem_classes=["main-container"]):
184
  with gr.Column():
185
  response_output, metadata_output, status_output = create_response_output_section()
186
- show_response_output = gr.Markdown(label="AI Response", elem_id="ai-response-output")
187
  show_metadata_output = gr.Markdown(label="Metadata")
188
  show_safety_output = gr.Markdown(label="Safety Check")
189
 
@@ -202,11 +198,8 @@ def create_optimized_gradio_interface():
202
  show_safety_output
203
  ],
204
  show_progress=True
205
- ).then(
206
- fn=None,
207
- _js="scrollToResponse" # 👈 JS scroll trigger AFTER result
208
  )
209
-
210
  query_input.submit(
211
  process_medical_query_with_progress,
212
  inputs=query_input,
 
135
  font-size: 1.1rem;
136
  }
137
 
138
+ ..highlight-flash {
139
+ animation: flash-highlight 1.6s ease-in-out;
140
+ }
141
+
 
 
 
 
142
 
143
  """,
144
  title="🏥 Optimized Gaza First Aid Assistant",
 
179
  with gr.Row(elem_classes=["main-container"]):
180
  with gr.Column():
181
  response_output, metadata_output, status_output = create_response_output_section()
182
+ show_response_output = gr.Markdown(label="AI Response", elem_classes=["highlight-flash"])
183
  show_metadata_output = gr.Markdown(label="Metadata")
184
  show_safety_output = gr.Markdown(label="Safety Check")
185
 
 
198
  show_safety_output
199
  ],
200
  show_progress=True
 
 
 
201
  )
202
+
203
  query_input.submit(
204
  process_medical_query_with_progress,
205
  inputs=query_input,