Finally found the issue and solve it, it is working perfectly fine for me now, it is an issue with answer streaming.
If the answer text streaming is not important for you, you can solve it by adding :
"SHOULD_STREAM = False "
to your app environment variables, or you can directly edit the app.py and comment the existing condition set to read from the environment variables :
AZURE_COSMOSDB_MONGO_VCORE_VECTOR_COLUMNS = os.environ.get("AZURE_COSMOSDB_MONGO_VCORE_VECTOR_COLUMNS")
SHOULD_STREAM = False
## if AZURE_OPENAI_STREAM.lower() == "true" else False ##