Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ app.add_middleware(
|
|
25 |
async def google_search(q: str, delimiter: str = "\n---\n", sites: Annotated[list[str] | None, Query()] = None):
|
26 |
print(sites)
|
27 |
print(type(sites))
|
28 |
-
url = f"https://www.google.com/search?q={q}"
|
29 |
if sites:
|
30 |
url += " OR ".join(["site:"+site for site in sites])
|
31 |
|
|
|
25 |
async def google_search(q: str, delimiter: str = "\n---\n", sites: Annotated[list[str] | None, Query()] = None):
|
26 |
print(sites)
|
27 |
print(type(sites))
|
28 |
+
url = f"https://www.google.com/search?q={q} "
|
29 |
if sites:
|
30 |
url += " OR ".join(["site:"+site for site in sites])
|
31 |
|