Spaces:
Sleeping
Sleeping
Fix: Runtime issue
Browse files- app.py +3 -3
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -195,10 +195,10 @@ def main():
|
|
| 195 |
label="Click on any example to run GradCAM"
|
| 196 |
)
|
| 197 |
|
| 198 |
-
# Configure queue
|
| 199 |
-
demo.queue(
|
| 200 |
|
| 201 |
-
# Launch with compatible parameters
|
| 202 |
demo.launch(
|
| 203 |
server_name="0.0.0.0",
|
| 204 |
server_port=7860,
|
|
|
|
| 195 |
label="Click on any example to run GradCAM"
|
| 196 |
)
|
| 197 |
|
| 198 |
+
# Configure queue with new syntax for Gradio 5.x
|
| 199 |
+
demo.queue(max_size=1) # Limit to 1 concurrent job
|
| 200 |
|
| 201 |
+
# Launch with compatible parameters for Gradio 5.x
|
| 202 |
demo.launch(
|
| 203 |
server_name="0.0.0.0",
|
| 204 |
server_port=7860,
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio==
|
| 2 |
grad-cam
|
| 3 |
numpy<2.0.0
|
| 4 |
torch==2.0.1
|
|
|
|
| 1 |
+
gradio==5.9.1
|
| 2 |
grad-cam
|
| 3 |
numpy<2.0.0
|
| 4 |
torch==2.0.1
|