Update api.py
Browse files
api.py
CHANGED
|
@@ -270,7 +270,7 @@ def voice_chat():
|
|
| 270 |
{
|
| 271 |
"transcript": text,
|
| 272 |
"answer": answer_text,
|
| 273 |
-
"audio_url": f"
|
| 274 |
}
|
| 275 |
)
|
| 276 |
|
|
|
|
| 270 |
{
|
| 271 |
"transcript": text,
|
| 272 |
"answer": answer_text,
|
| 273 |
+
"audio_url": f"https://mahmous-chatbot3.hf.space/audio/{os.path.basename(speech_file.name)}",
|
| 274 |
}
|
| 275 |
)
|
| 276 |
|