Drag2121 commited on
Commit
4481d28
·
1 Parent(s): e9e25bb

streaming added

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ async def ask_question(question: Question):
45
  logger.error(f"Error in /ask endpoint: {str(e)}")
46
  raise HTTPException(status_code=500, detail=str(e))
47
 
48
- @app.post("/ask_stream")
49
  async def ask_question_stream(question: Question):
50
  try:
51
  logger.info(f"Received question for streaming: {question.text}")
 
45
  logger.error(f"Error in /ask endpoint: {str(e)}")
46
  raise HTTPException(status_code=500, detail=str(e))
47
 
48
+ @app.post("/ask_streaming")
49
  async def ask_question_stream(question: Question):
50
  try:
51
  logger.info(f"Received question for streaming: {question.text}")