Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,9 @@ app.add_middleware(
|
|
22 |
|
23 |
|
24 |
@app.get("/google_search")
|
25 |
-
async def google_search(q: str, delimiter: str = "\n---\n", sites: Optional[
|
|
|
|
|
26 |
url = f"https://www.google.com/search?q={q}"
|
27 |
if sites:
|
28 |
url += "&" + " OR ".join(["site:"+site for site in sites])
|
|
|
22 |
|
23 |
|
24 |
@app.get("/google_search")
|
25 |
+
async def google_search(q: str, delimiter: str = "\n---\n", sites: Optional[str] = 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])
|