petter2025 commited on
Commit
be01777
·
verified ·
1 Parent(s): 1f4ad74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -643,10 +643,9 @@ def create_demo_interface():
643
  # Get CSS styles
644
  css_styles = get_styles()
645
 
 
646
  with gr.Blocks(
647
- title="🚀 ARF Investor Demo v3.8.0",
648
- theme=gr.themes.Soft(primary_hue="blue"),
649
- css=css_styles
650
  ) as demo:
651
 
652
  # Header
@@ -1292,12 +1291,19 @@ def main():
1292
  print(" • Enhanced Tab 1 with rich visualizations")
1293
  print("=" * 70)
1294
 
 
 
 
1295
  # Create and launch demo
1296
  demo = create_demo_interface()
 
 
1297
  demo.launch(
1298
  server_name="0.0.0.0",
1299
  server_port=7860,
1300
- share=False
 
 
1301
  )
1302
 
1303
  if __name__ == "__main__":
 
643
  # Get CSS styles
644
  css_styles = get_styles()
645
 
646
+ # FIXED: Removed theme and css from Blocks constructor
647
  with gr.Blocks(
648
+ title="🚀 ARF Investor Demo v3.8.0"
 
 
649
  ) as demo:
650
 
651
  # Header
 
1291
  print(" • Enhanced Tab 1 with rich visualizations")
1292
  print("=" * 70)
1293
 
1294
+ # Import gradio for theme
1295
+ import gradio as gr
1296
+
1297
  # Create and launch demo
1298
  demo = create_demo_interface()
1299
+
1300
+ # FIXED: Moved theme and css parameters to launch() method
1301
  demo.launch(
1302
  server_name="0.0.0.0",
1303
  server_port=7860,
1304
+ share=False,
1305
+ theme=gr.themes.Soft(primary_hue="blue"),
1306
+ css=get_styles()
1307
  )
1308
 
1309
  if __name__ == "__main__":