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