Spaces:
Runtime error
Runtime error
xyplon
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def Hf():
|
|
44 |
'model' : model,
|
45 |
'style': style
|
46 |
})
|
47 |
-
if(req.
|
48 |
return "an error occurred! ", 500
|
49 |
for chunk in req.iter_lines():
|
50 |
yield f'{chunk.decode()}\n'
|
|
|
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():
|
50 |
yield f'{chunk.decode()}\n'
|