ParthSadaria commited on
Commit
c00690f
·
verified ·
1 Parent(s): deb002e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -56,7 +56,7 @@ def generate_search(query: str, stream: bool = True) -> str:
56
  # Collect streamed text content
57
  streaming_text = ""
58
  for value in response.iter_lines(decode_unicode=True, chunk_size=12):
59
- modified_value = re.sub("data:", "", value)
60
  if modified_value:
61
  try:
62
  json_modified_value = json.loads(modified_value)
 
56
  # Collect streamed text content
57
  streaming_text = ""
58
  for value in response.iter_lines(decode_unicode=True, chunk_size=12):
59
+ modified_value = re.sub(value)
60
  if modified_value:
61
  try:
62
  json_modified_value = json.loads(modified_value)