Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,10 @@
|
|
| 1 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
import os
|
| 4 |
import time
|
|
@@ -19,6 +25,9 @@ import torch
|
|
| 19 |
from diffusers import DiffusionPipeline, StableDiffusionPipeline
|
| 20 |
import torch
|
| 21 |
from transformers import pipeline
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Configure Streamlit page
|
| 24 |
st.set_page_config(
|
|
|
|
| 1 |
+
# Fix for huggingface_hub compatibility
|
| 2 |
+
import huggingface_hub
|
| 3 |
+
|
| 4 |
+
if not hasattr(huggingface_hub, 'cached_download'):
|
| 5 |
+
from huggingface_hub import hf_hub_download
|
| 6 |
+
huggingface_hub.cached_download = hf_hub_download
|
| 7 |
+
|
| 8 |
import streamlit as st
|
| 9 |
import os
|
| 10 |
import time
|
|
|
|
| 25 |
from diffusers import DiffusionPipeline, StableDiffusionPipeline
|
| 26 |
import torch
|
| 27 |
from transformers import pipeline
|
| 28 |
+
from huggingface_hub import HfFolder, hf_hub_download, model_info
|
| 29 |
+
|
| 30 |
+
|
| 31 |
|
| 32 |
# Configure Streamlit page
|
| 33 |
st.set_page_config(
|