James MacQuillan commited on
Commit
1595ea1
·
1 Parent(s): 0566911
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -410,8 +410,8 @@ def detect_data_request(user_input, history):
410
  stream=True,
411
  ):
412
  delta = message.choices[0].delta
413
- if delta and "content" in delta:
414
- final_response += delta["content"]
415
 
416
  history.append(("You: " + user_input, "IM.B: " + final_response))
417
  except:
 
410
  stream=True,
411
  ):
412
  delta = message.choices[0].delta
413
+
414
+ final_response += delta["content"]
415
 
416
  history.append(("You: " + user_input, "IM.B: " + final_response))
417
  except: