DreamStream-1 commited on
Commit
40c665e
·
verified ·
1 Parent(s): 54baed3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -268,7 +268,7 @@ with gr.Blocks() as app:
268
  ]
269
 
270
  theme_dropdown = gr.Dropdown(choices=themes, label="Select Theme")
271
-
272
  toggle_dark = gr.Button(value="Toggle Dark", scale=1)
273
 
274
  # Theme changing logic
@@ -285,11 +285,16 @@ with gr.Blocks() as app:
285
  outputs=[]
286
  )
287
 
288
- toggle_dark.click(None, _js="""
289
- () => {
290
- document.body.classList.toggle('dark');
291
- }
292
- """)
 
 
 
 
 
293
 
294
  with gr.Tab("Well-Being Chatbot"):
295
  with gr.Row():
@@ -321,7 +326,7 @@ with gr.Blocks() as app:
321
  symptom5 = gr.Dropdown(choices=[None] + list(X_train.columns), label="Select Symptom 5", value=None)
322
 
323
  submit_disease = gr.Button(value="Predict Disease", variant="primary", icon="fa-stethoscope")
324
-
325
  disease_prediction_result = gr.Markdown(label="Predicted Diseases")
326
 
327
  submit_disease.click(
 
268
  ]
269
 
270
  theme_dropdown = gr.Dropdown(choices=themes, label="Select Theme")
271
+
272
  toggle_dark = gr.Button(value="Toggle Dark", scale=1)
273
 
274
  # Theme changing logic
 
285
  outputs=[]
286
  )
287
 
288
+ toggle_dark.click(
289
+ None,
290
+ None,
291
+ None,
292
+ _js="""
293
+ () => {
294
+ document.body.classList.toggle('dark');
295
+ }
296
+ """
297
+ )
298
 
299
  with gr.Tab("Well-Being Chatbot"):
300
  with gr.Row():
 
326
  symptom5 = gr.Dropdown(choices=[None] + list(X_train.columns), label="Select Symptom 5", value=None)
327
 
328
  submit_disease = gr.Button(value="Predict Disease", variant="primary", icon="fa-stethoscope")
329
+
330
  disease_prediction_result = gr.Markdown(label="Predicted Diseases")
331
 
332
  submit_disease.click(