Spaces:
Sleeping
Sleeping
put search on an API endpoint
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import polars as pl
|
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
|
| 9 |
-
@app.get("/")
|
| 10 |
def greet_json(query: str):
|
| 11 |
res_tfidf = query_docs(query)
|
| 12 |
res_sbert = query_docs(query)
|
|
|
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
|
| 9 |
+
@app.get("/search")
|
| 10 |
def greet_json(query: str):
|
| 11 |
res_tfidf = query_docs(query)
|
| 12 |
res_sbert = query_docs(query)
|