mokady commited on
Commit
70abcc1
1 Parent(s): d1bdd27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
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