Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,10 @@ import gradio as gr
|
|
25 |
import spaces
|
26 |
from fastapi import FastAPI, UploadFile, File, Form, HTTPException
|
27 |
from PIL import Image
|
|
|
|
|
|
|
|
|
28 |
|
29 |
from diffusers import (
|
30 |
StableDiffusionControlNetPipeline,
|
|
|
25 |
import spaces
|
26 |
from fastapi import FastAPI, UploadFile, File, Form, HTTPException
|
27 |
from PIL import Image
|
28 |
+
from huggingface_hub import hf_hub_download
|
29 |
+
import huggingface_hub as _hf_hub
|
30 |
+
if not hasattr(_hf_hub, "cached_download"): # v0.26+ には存在しない
|
31 |
+
_hf_hub.cached_download = hf_hub_download
|
32 |
|
33 |
from diffusers import (
|
34 |
StableDiffusionControlNetPipeline,
|