Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ import torch
|
|
4 |
import diffusers
|
5 |
import os
|
6 |
hf_token = os.environ.get("HF_TOKEN")
|
7 |
-
import spaces
|
8 |
from diffusers import StableDiffusionXLInpaintPipeline, DDIMScheduler, UNet2DConditionModel
|
9 |
|
10 |
|
@@ -39,7 +38,6 @@ def read_content(file_path: str) -> str:
|
|
39 |
|
40 |
return content
|
41 |
|
42 |
-
@spaces.GPU()
|
43 |
def predict(dict, prompt="", negative_prompt="", guidance_scale=7.5, steps=20, strength=1.0, scheduler="EulerDiscreteScheduler"):
|
44 |
if negative_prompt == "":
|
45 |
negative_prompt = None
|
|
|
4 |
import diffusers
|
5 |
import os
|
6 |
hf_token = os.environ.get("HF_TOKEN")
|
|
|
7 |
from diffusers import StableDiffusionXLInpaintPipeline, DDIMScheduler, UNet2DConditionModel
|
8 |
|
9 |
|
|
|
38 |
|
39 |
return content
|
40 |
|
|
|
41 |
def predict(dict, prompt="", negative_prompt="", guidance_scale=7.5, steps=20, strength=1.0, scheduler="EulerDiscreteScheduler"):
|
42 |
if negative_prompt == "":
|
43 |
negative_prompt = None
|