Yaron Koresh commited on
Commit
42906cf
·
verified ·
1 Parent(s): 8fe39f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -103,11 +103,12 @@ def Piper(_do):
103
  return None
104
 
105
  @spaces.GPU(duration=75)
106
- def Piper2(name,neg):
107
  try:
108
  retu = pipe2(
 
109
  negative_prompt=neg,
110
- image=name
111
  )
112
  return retu
113
  except Exception as e:
@@ -139,7 +140,7 @@ def infer(p1,p2):
139
  return name
140
 
141
  init_image = load_image(name).convert("RGB")
142
- output2 = Piper2(init_image,neg)
143
  if output2 == None:
144
  return None
145
  else:
 
103
  return None
104
 
105
  @spaces.GPU(duration=75)
106
+ def Piper2(img,posi,neg):
107
  try:
108
  retu = pipe2(
109
+ prompt=posi,
110
  negative_prompt=neg,
111
+ image=img
112
  )
113
  return retu
114
  except Exception as e:
 
140
  return name
141
 
142
  init_image = load_image(name).convert("RGB")
143
+ output2 = Piper2(init_image,p1,neg)
144
  if output2 == None:
145
  return None
146
  else: