Spaces:
Running on Zero
Running on Zero
Fix Gradio launch and version compatibility
Browse files- Remove demo.launch() - HF Spaces handles this automatically
- Use gradio 4.36.0 which is more stable than 4.44.0
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- hf-space/README.md +1 -1
- hf-space/app.py +1 -2
hf-space/README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🔍
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.
|
| 8 |
python_version: "3.10"
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.36.0
|
| 8 |
python_version: "3.10"
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
hf-space/app.py
CHANGED
|
@@ -159,5 +159,4 @@ with gr.Blocks(title="Visual Search API") as demo:
|
|
| 159 |
""")
|
| 160 |
|
| 161 |
|
| 162 |
-
# HF Spaces handles the launch automatically
|
| 163 |
-
demo.launch()
|
|
|
|
| 159 |
""")
|
| 160 |
|
| 161 |
|
| 162 |
+
# HF Spaces handles the launch automatically - do not call demo.launch()
|
|
|