Wajahat698 commited on
Commit
f52d276
·
verified ·
1 Parent(s): 80b3c94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -404,7 +404,8 @@ function refresh() {
404
  }
405
  """
406
 
407
- with gr.Blocks(css=css, js=js, theme=gr.themes.Base()) as demo:
 
408
  gr.Markdown("""
409
  <h2 style="text-align: center; font-size: 2.25rem; font-weight: 600;">
410
  Driver Analysis Demo - Purchase Consideration
@@ -438,5 +439,5 @@ with gr.Blocks(css=css, js=js, theme=gr.themes.Base()) as demo:
438
  outputs=[r2_output, avg_target_output, factor_performance_plot, driver_analysis_plot]
439
  )
440
 
441
- # Launch with light theme explicitly
442
- demo.launch(server_name="0.0.0.0", share=False, theme="default")
 
404
  }
405
  """
406
 
407
+ # Create the Gradio interface with light theme
408
+ with gr.Blocks(css=css, js=js, theme=gr.themes.Soft()) as demo:
409
  gr.Markdown("""
410
  <h2 style="text-align: center; font-size: 2.25rem; font-weight: 600;">
411
  Driver Analysis Demo - Purchase Consideration
 
439
  outputs=[r2_output, avg_target_output, factor_performance_plot, driver_analysis_plot]
440
  )
441
 
442
+ # Launch without the theme parameter
443
+ demo.launch(server_name="0.0.0.0", share=False)