mayank1101
commited on
Update app.py
Browse files
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
|