streaming added
Browse files
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("/
|
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}")
|