Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def web_search(query, max_results=100):
|
|
| 25 |
# Semantic Ranking
|
| 26 |
def semantic_web_search(query):
|
| 27 |
if query.strip() == "":
|
| 28 |
-
return "
|
| 29 |
|
| 30 |
docs = web_search(query, max_results=100)
|
| 31 |
texts = [d["title"] + " " + d["body"] for d in docs]
|
|
|
|
| 25 |
# Semantic Ranking
|
| 26 |
def semantic_web_search(query):
|
| 27 |
if query.strip() == "":
|
| 28 |
+
return "Please enter a search query."
|
| 29 |
|
| 30 |
docs = web_search(query, max_results=100)
|
| 31 |
texts = [d["title"] + " " + d["body"] for d in docs]
|