Spaces:
Runtime error
Runtime error
[Admin maintenance] Support new ZeroGPU hardware
#1
by multimodalart HF Staff - opened
app.py
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
import spaces
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import math
|
| 3 |
import gradio as gr
|
| 4 |
import numpy as np
|
|
|
|
| 1 |
import spaces
|
| 2 |
+
# --- ZeroGPU/Blackwell maintenance: newer huggingface_hub dropped cached_download, which older
|
| 3 |
+
# diffusers (diffusers/utils/dynamic_modules_utils.py) still imports at load time. Restore it. ---
|
| 4 |
+
import huggingface_hub
|
| 5 |
+
if not hasattr(huggingface_hub, "cached_download"):
|
| 6 |
+
huggingface_hub.cached_download = huggingface_hub.hf_hub_download
|
| 7 |
import math
|
| 8 |
import gradio as gr
|
| 9 |
import numpy as np
|