Spaces:
Sleeping
Sleeping
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>
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"
|
| 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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
)
|