Spaces:
Build error
Build error
Commit
·
cd9f0a2
1
Parent(s):
fb796b9
update
Browse files- app.py +2 -2
- requirements.txt +3 -3
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from diffusers.utils import load_image
|
|
| 9 |
from diffusers import EulerDiscreteScheduler, T2IAdapter
|
| 10 |
|
| 11 |
from huggingface_hub import hf_hub_download
|
| 12 |
-
import spaces
|
| 13 |
import gradio as gr
|
| 14 |
|
| 15 |
from pipeline_t2i_adapter import PhotoMakerStableDiffusionXLAdapterPipeline
|
|
@@ -78,7 +78,7 @@ pipe.fuse_lora()
|
|
| 78 |
pipe.to(device)
|
| 79 |
|
| 80 |
|
| 81 |
-
|
| 82 |
def generate_image(
|
| 83 |
upload_images,
|
| 84 |
prompt,
|
|
|
|
| 9 |
from diffusers import EulerDiscreteScheduler, T2IAdapter
|
| 10 |
|
| 11 |
from huggingface_hub import hf_hub_download
|
| 12 |
+
#import spaces
|
| 13 |
import gradio as gr
|
| 14 |
|
| 15 |
from pipeline_t2i_adapter import PhotoMakerStableDiffusionXLAdapterPipeline
|
|
|
|
| 78 |
pipe.to(device)
|
| 79 |
|
| 80 |
|
| 81 |
+
#@spaces.GPU
|
| 82 |
def generate_image(
|
| 83 |
upload_images,
|
| 84 |
prompt,
|
requirements.txt
CHANGED
|
@@ -5,9 +5,9 @@ transformers
|
|
| 5 |
accelerate
|
| 6 |
safetensors
|
| 7 |
einops
|
| 8 |
-
onnxruntime-gpu
|
| 9 |
-
spaces
|
| 10 |
omegaconf
|
| 11 |
peft
|
| 12 |
huggingface-hub
|
| 13 |
-
insightface==0.7.3
|
|
|
|
| 5 |
accelerate
|
| 6 |
safetensors
|
| 7 |
einops
|
| 8 |
+
#onnxruntime-gpu
|
| 9 |
+
#spaces
|
| 10 |
omegaconf
|
| 11 |
peft
|
| 12 |
huggingface-hub
|
| 13 |
+
insightface==0.7.3
|