Update app.py
Browse files
app.py
CHANGED
@@ -181,7 +181,7 @@ with gr.Blocks() as demo:
|
|
181 |
for line in r.iter_lines():
|
182 |
if line and keep_streaming:
|
183 |
if r.status_code != 200:
|
184 |
-
|
185 |
json_response = json.loads(line)
|
186 |
|
187 |
try:
|
|
|
181 |
for line in r.iter_lines():
|
182 |
if line and keep_streaming:
|
183 |
if r.status_code != 200:
|
184 |
+
raise Exception('status_code != 200')
|
185 |
json_response = json.loads(line)
|
186 |
|
187 |
try:
|