xyplon
commited on
Update app.py
Browse files
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 |
|