deveix commited on
Commit
3efcc0b
1 Parent(s): cb75233

get answer

Browse files
Files changed (1) hide show
  1. 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, token: str = Depends(verify_token)):
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)