Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def infer(prompt, n_samples, steps, scale, seed):
|
|
45 |
if prompt == "":
|
46 |
raise gr.Error("Empty prompt. Please provide a prompt.")
|
47 |
|
48 |
-
response = safe_sd(prompt, int(n_samples), max(50,int(steps)), scale, seed, mode="
|
49 |
|
50 |
data = json.load(BytesIO(response.content))
|
51 |
if 'output' not in data:
|
|
|
45 |
if prompt == "":
|
46 |
raise gr.Error("Empty prompt. Please provide a prompt.")
|
47 |
|
48 |
+
response = safe_sd(prompt, int(n_samples), max(50,int(steps)), scale, seed, mode="text2img")
|
49 |
|
50 |
data = json.load(BytesIO(response.content))
|
51 |
if 'output' not in data:
|