Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -99,7 +99,8 @@ async def generate_report(request: Request, query: QueryModel):
|
|
99 |
md_report = together_response(prompt, model=llm_default_medium, SysPrompt=sys_prompt_output_format)
|
100 |
|
101 |
# Insert data into database (or other storage)
|
102 |
-
|
|
|
103 |
references_html = dict()
|
104 |
for text, url in all_text_with_urls:
|
105 |
references_html[url] = str(md_to_html(text))
|
|
|
99 |
md_report = together_response(prompt, model=llm_default_medium, SysPrompt=sys_prompt_output_format)
|
100 |
|
101 |
# Insert data into database (or other storage)
|
102 |
+
if user_id != "test":
|
103 |
+
insert_data(user_id, query_str, description, str(all_text_with_urls), md_report)
|
104 |
references_html = dict()
|
105 |
for text, url in all_text_with_urls:
|
106 |
references_html[url] = str(md_to_html(text))
|