[Admin maintenance] Support new ZeroGPU hardware

#1
by multimodalart HF Staff - opened
Files changed (1) hide show
  1. app.py +5 -0
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