xyplon commited on
Commit
c8ceda2
·
verified ·
1 Parent(s): 5facae8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,7 +43,7 @@ def Hf():
43
  'scale': scale,
44
  'model' : model,
45
  'style': style
46
- })
47
  if(req.status_code!=200):
48
  return "an error occurred! ", 500
49
  for chunk in req.iter_lines():
@@ -52,4 +52,4 @@ def Hf():
52
 
53
 
54
  if __name__ == "__main__":
55
- app.run(debug=True, host='0.0.0.0', port=7860)
 
43
  'scale': scale,
44
  'model' : model,
45
  'style': style
46
+ }, stream=True)
47
  if(req.status_code!=200):
48
  return "an error occurred! ", 500
49
  for chunk in req.iter_lines():
 
52
 
53
 
54
  if __name__ == "__main__":
55
+ app.run(debug=True, host='0.0.0.0', port=7860, threaded=True)