Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def infer(prompt, n_samples, steps, scale, seed):
|
|
54 |
im = Image.open(BytesIO(base64.b64decode(image['image_base64'])))
|
55 |
images.append(im)
|
56 |
|
57 |
-
response = safe_sd(prompt, int(n_samples), max(50,int(steps)), scale, seed, mode="
|
58 |
|
59 |
data = json.load(BytesIO(response.content))
|
60 |
if 'output' not in data:
|
|
|
54 |
im = Image.open(BytesIO(base64.b64decode(image['image_base64'])))
|
55 |
images.append(im)
|
56 |
|
57 |
+
response = safe_sd(prompt, int(n_samples), max(50,int(steps)), scale, seed, mode="text2img")
|
58 |
|
59 |
data = json.load(BytesIO(response.content))
|
60 |
if 'output' not in data:
|