pvanand commited on
Commit
9245a76
1 Parent(s): 3b486ab

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
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
- insert_data(user_id, query_str, description, str(all_text_with_urls), md_report)
 
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))