PatrickSchrML commited on
Commit
aa28ec8
1 Parent(s): 12de648
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -56,8 +56,9 @@ def infer(prompt, n_samples, steps, scale, seed):
56
  response = safe_sd(prompt, int(n_samples), max(50,int(steps)), f'{scale:.1f}', int(seed))
57
  #requests.get(url.format(prompt, int(n_samples), max(50,int(steps)), f'{scale:.1f}', int(seed)))
58
  #response = requests.get(url.format('a%20naked%20girl', 2, 50, 7.5, 2))
59
- #data = json.load(BytesIO(response.content))
60
- data = response.json()
 
61
  if 'output' not in data:
62
  raise gr.Error("Although safety guidance is enabled, potential unsafe content found. Please try again with different seed.")
63
  else:
 
56
  response = safe_sd(prompt, int(n_samples), max(50,int(steps)), f'{scale:.1f}', int(seed))
57
  #requests.get(url.format(prompt, int(n_samples), max(50,int(steps)), f'{scale:.1f}', int(seed)))
58
  #response = requests.get(url.format('a%20naked%20girl', 2, 50, 7.5, 2))
59
+ data = json.load(BytesIO(response.content))
60
+ #data = response.json()
61
+ print(data)
62
  if 'output' not in data:
63
  raise gr.Error("Although safety guidance is enabled, potential unsafe content found. Please try again with different seed.")
64
  else: