Commit 8d3ab218 authored by chenpangpang's avatar chenpangpang
Browse files

feat: 去除spaces

parent 8e32112a
...@@ -9,7 +9,6 @@ from diffusers.utils import load_image ...@@ -9,7 +9,6 @@ from diffusers.utils import load_image
from diffusers import EulerDiscreteScheduler, T2IAdapter from diffusers import EulerDiscreteScheduler, T2IAdapter
from huggingface_hub import hf_hub_download from huggingface_hub import hf_hub_download
import spaces
import gradio as gr import gradio as gr
from photomaker import PhotoMakerStableDiffusionXLAdapterPipeline from photomaker import PhotoMakerStableDiffusionXLAdapterPipeline
...@@ -72,8 +71,6 @@ pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config) ...@@ -72,8 +71,6 @@ pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.fuse_lora() pipe.fuse_lora()
pipe.to(device) pipe.to(device)
@spaces.GPU
def generate_image( def generate_image(
upload_images, upload_images,
prompt, prompt,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment