Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -84,6 +84,7 @@ async def generate_report(query: QueryModel):
|
|
84 |
additional_context = limit_tokens(str(all_text_with_urls))
|
85 |
prompt = f"#### COMPLETE THE TASK: {description} #### IN THE CONTEXT OF ### CONTEXT: {query_str} USING THE #### SCRAPED DATA:{additional_context}"
|
86 |
except Exception as e:
|
|
|
87 |
query.internet = False
|
88 |
print("failed to search/scrape results, falling back to LLM response")
|
89 |
|
|
|
84 |
additional_context = limit_tokens(str(all_text_with_urls))
|
85 |
prompt = f"#### COMPLETE THE TASK: {description} #### IN THE CONTEXT OF ### CONTEXT: {query_str} USING THE #### SCRAPED DATA:{additional_context}"
|
86 |
except Exception as e:
|
87 |
+
print(e)
|
88 |
query.internet = False
|
89 |
print("failed to search/scrape results, falling back to LLM response")
|
90 |
|