WaysAhead Global commited on
Commit
7828389
·
verified ·
1 Parent(s): 3862a08

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -163,7 +163,7 @@ async def get_prompt_based_dpr(request: PromptRequest):
163
  raise ValueError("No valid name extracted.")
164
 
165
  sql = build_sql(first, last, start_date, end_date)
166
- context = f"Generate HTML weekly report for: {first} {last or ''} from {start_date or 'this week'} to {end_date or ''} using this query:\n{sql}. Give a proper class name to the table and keep it constant as weekly-report and do not use give anything but the html response
167
  response = agent_executor.invoke({"input": context})
168
 
169
  # ✅ Return only the HTML table
 
163
  raise ValueError("No valid name extracted.")
164
 
165
  sql = build_sql(first, last, start_date, end_date)
166
+ context = f"Generate HTML weekly report for: {first} {last or ''} from {start_date or 'this week'} to {end_date or ''} using this query:\n{sql}. Give a proper class name to the table and keep it constant as weekly-report and do not use give anything but the html response"
167
  response = agent_executor.invoke({"input": context})
168
 
169
  # ✅ Return only the HTML table