xyplon commited on
Commit
070cc39
·
verified ·
1 Parent(s): cf37cf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -52,6 +52,7 @@ def Hf():
52
  return "an error occurred! ", 500
53
  for chunk in req.iter_lines():
54
  yield f'{chunk.decode()}\n'
 
55
  reqs-=1
56
  return Response(Gen(prompt=prompt,negative=negative,steps=steps,width=width,height=height,scale=scale,style=style,model=model), mimetype="text/event-stream")
57
 
 
52
  return "an error occurred! ", 500
53
  for chunk in req.iter_lines():
54
  yield f'{chunk.decode()}\n'
55
+ global reqs
56
  reqs-=1
57
  return Response(Gen(prompt=prompt,negative=negative,steps=steps,width=width,height=height,scale=scale,style=style,model=model), mimetype="text/event-stream")
58