YC-Chen commited on
Commit
5450cb9
1 Parent(s): 74571b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- print('[warn] status_code != 200')
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: