Spaces:
Running
Running
deveix
commited on
Commit
•
3efcc0b
1
Parent(s):
cb75233
get answer
Browse files- app/main.py +1 -1
app/main.py
CHANGED
@@ -206,7 +206,7 @@ def verify_token(authorization: str = Header(None)):
|
|
206 |
|
207 |
# New API endpoint to get an answer using the chain
|
208 |
@app.post("/get_answer")
|
209 |
-
async def get_answer(item: Item
|
210 |
try:
|
211 |
# Perform the similarity search with the provided question
|
212 |
matching_docs = vector_search.similarity_search(item.question, k=3)
|
|
|
206 |
|
207 |
# New API endpoint to get an answer using the chain
|
208 |
@app.post("/get_answer")
|
209 |
+
async def get_answer(item: Item):
|
210 |
try:
|
211 |
# Perform the similarity search with the provided question
|
212 |
matching_docs = vector_search.similarity_search(item.question, k=3)
|