Arafath10 commited on
Commit
7c658bd
·
verified ·
1 Parent(s): 523b044

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -91,7 +91,7 @@ def streaming(userText,idf):
91
  for chunk in response:
92
  try:
93
  #print(chunk.choices[0].delta.content)
94
- yield chunk.choices[0].delta.content
95
  except:
96
  return ""
97
 
 
91
  for chunk in response:
92
  try:
93
  #print(chunk.choices[0].delta.content)
94
+ yield (chunk.choices[0].delta.content).split(":")[1]
95
  except:
96
  return ""
97