CORVO-AI commited on
Commit
09edd93
·
verified ·
1 Parent(s): 1c2a141

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def get_ai_response(user_message, chat_history, ID):
21
  for line in response.iter_lines():
22
  if line:
23
  decoded_line = line.decode('utf-8')
24
- if 'youChatToken' in decoded_line and 'data: 'n decoded_line:
25
  data = json.loads(decoded_line.split('data: ')[1])
26
  model_response += data["youChatToken"]
27
 
 
21
  for line in response.iter_lines():
22
  if line:
23
  decoded_line = line.decode('utf-8')
24
+ if 'youChatToken' in decoded_line and 'data: ' in decoded_line:
25
  data = json.loads(decoded_line.split('data: ')[1])
26
  model_response += data["youChatToken"]
27