PSaiml commited on
Commit
42aa78c
1 Parent(s): 74536e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="safe_text2img")
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: