Davichick commited on
Commit
09a8ef3
Β·
verified Β·
1 Parent(s): 9d3452e

fix: Gradio 6.0 compat - move theme/css to launch(), remove hardcoded port

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -443,7 +443,7 @@ else:
443
  logo_html = '<h1 style="color:#14b8a6; text-align:center; font-size:2.8em; font-family:Inter,sans-serif; font-weight:800; letter-spacing:-0.02em;">Interview Forge</h1><p style="text-align:center; color:#6b7280; font-size:1em;">Success Through Preparation</p>'
444
 
445
 
446
- with gr.Blocks(theme=theme, css=custom_css) as app:
447
 
448
  # ── Hero header ───────────────────────────────────────────────────────────
449
  gr.HTML(f"""
@@ -544,4 +544,4 @@ with gr.Blocks(theme=theme, css=custom_css) as app:
544
  )
545
 
546
  if __name__ == "__main__":
547
- app.launch(server_name="0.0.0.0", server_port=7860, share=False)
 
443
  logo_html = '<h1 style="color:#14b8a6; text-align:center; font-size:2.8em; font-family:Inter,sans-serif; font-weight:800; letter-spacing:-0.02em;">Interview Forge</h1><p style="text-align:center; color:#6b7280; font-size:1em;">Success Through Preparation</p>'
444
 
445
 
446
+ with gr.Blocks() as app:
447
 
448
  # ── Hero header ───────────────────────────────────────────────────────────
449
  gr.HTML(f"""
 
544
  )
545
 
546
  if __name__ == "__main__":
547
+ app.launch(server_name="0.0.0.0", share=False, theme=theme, css=custom_css)