Spaces:
Runtime error
Runtime error
Fix: Update deprecated APIs and dependencies
Browse files## Fix: Update Space to work with current Gradio/dependencies
This PR fixes the following issues preventing the Space from running:
- Updated `sdk_version` from `4.36.0` to `5.29.1`
- Removed deprecated `enable_queue` parameter
### Details
The Space is currently showing as `RUNTIME_ERROR`. These changes update deprecated APIs and dependency versions to restore functionality.
---
*This fix was generated by [smolagents/ml-agent](https://huggingface.co/smolagents/ml-agent) 🤖*
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: ⚡
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
license: mit
|
| 10 |
---
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.29.1
|
| 8 |
app_file: app.py
|
| 9 |
license: mit
|
| 10 |
---
|
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def check_nsfw_images(images: list[Image.Image]) -> list[bool]:
|
|
| 41 |
return has_nsfw_concepts
|
| 42 |
|
| 43 |
# Function
|
| 44 |
-
@spaces.GPU(
|
| 45 |
def generate_image(prompt, base, motion, step, progress=gr.Progress()):
|
| 46 |
global step_loaded
|
| 47 |
global base_loaded
|
|
|
|
| 41 |
return has_nsfw_concepts
|
| 42 |
|
| 43 |
# Function
|
| 44 |
+
@spaces.GPU()
|
| 45 |
def generate_image(prompt, base, motion, step, progress=gr.Progress()):
|
| 46 |
global step_loaded
|
| 47 |
global base_loaded
|