Nihal2000 commited on
Commit
42fc0c4
·
verified ·
1 Parent(s): cacf2f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -312,8 +312,12 @@ def create_3d_viz():
312
  # --- MAIN APP ---
313
 
314
  def create_app():
315
- # Create Blocks WITHOUT css and theme (moved to launch)
316
- with gr.Blocks(title="DebugGenie 🧞") as demo:
 
 
 
 
317
 
318
  # 1. HERO SECTION
319
  with gr.Row():
@@ -501,13 +505,8 @@ ModuleNotFoundError: No module named 'gradio'""", None
501
  if __name__ == "__main__":
502
  demo = create_app()
503
 
504
- # Launch with theme and CSS (Gradio 6 requirement)
505
  demo.launch(
506
  server_name="0.0.0.0",
507
- server_port=7860,
508
- theme=gr.themes.Soft(
509
- primary_hue="indigo",
510
- neutral_hue="slate"
511
- ),
512
- css=HACKATHON_CSS
513
  )
 
312
  # --- MAIN APP ---
313
 
314
  def create_app():
315
+ # Create Blocks with theme and css (they should be here in Gradio 6)
316
+ with gr.Blocks(
317
+ title="DebugGenie 🧞",
318
+ theme=gr.themes.Soft(primary_hue="indigo", neutral_hue="slate"),
319
+ css=HACKATHON_CSS
320
+ ) as demo:
321
 
322
  # 1. HERO SECTION
323
  with gr.Row():
 
505
  if __name__ == "__main__":
506
  demo = create_app()
507
 
508
+ # Simple launch without theme/css (already in Blocks constructor)
509
  demo.launch(
510
  server_name="0.0.0.0",
511
+ server_port=7860
 
 
 
 
 
512
  )