Spaces:
Running
Running
Update main.py
Browse files
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(
|
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)
|