mayank1101 commited on
Commit
28bfd4b
·
verified ·
1 Parent(s): 1fb2b15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,9 +18,9 @@ perplexity_client = PerplexityClient(
18
 
19
  async def query_api(query: str, website: str, after_date: str) -> tuple:
20
  if website:
21
- query = query + f" site:{website}"
22
  if after_date:
23
- query = query + f" after:{after_date}"
24
  print("query: ", query)
25
  try:
26
  # Fetch response from Perplexity
 
18
 
19
  async def query_api(query: str, website: str, after_date: str) -> tuple:
20
  if website:
21
+ query = query + f" \"site:{website}\""
22
  if after_date:
23
+ query = query + f" \"after:{after_date}\""
24
  print("query: ", query)
25
  try:
26
  # Fetch response from Perplexity