genomenet Claude Opus 4.5 commited on
Commit
ad73274
·
1 Parent(s): f701732

Fix Gradio 6.0 deprecation warning

Browse files

- Move theme and css parameters from gr.Blocks() to demo.launch()
- Fixes UserWarning about parameters moved in Gradio 6.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -711,7 +711,7 @@ Blue = negative activation, Red = positive activation.
711
 
712
 
713
  # Build interface
714
- with gr.Blocks(title="CRISPR Array Detection", theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
715
  gr.Markdown("""
716
  # CRISPR Array Detection
717
 
@@ -871,4 +871,9 @@ if __name__ == "__main__":
871
  model = get_model()
872
  warmup_model(model)
873
  print(f"Model ready! GPU: {get_gpu_status()}")
874
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
 
 
711
 
712
 
713
  # Build interface
714
+ with gr.Blocks(title="CRISPR Array Detection") as demo:
715
  gr.Markdown("""
716
  # CRISPR Array Detection
717
 
 
871
  model = get_model()
872
  warmup_model(model)
873
  print(f"Model ready! GPU: {get_gpu_status()}")
874
+ demo.launch(
875
+ server_name="0.0.0.0",
876
+ server_port=7860,
877
+ theme=gr.themes.Soft(),
878
+ css=CUSTOM_CSS
879
+ )