Update TextGen/router.py
Browse files- TextGen/router.py +2 -1
TextGen/router.py
CHANGED
@@ -306,7 +306,8 @@ def generate_voice_eleven(message: VoiceMessage = None):
|
|
306 |
# print("received : ",chunk)
|
307 |
# yield chunk#
|
308 |
#
|
309 |
-
# return StreamingResponse(audio_stream(),media_type="audio/mpeg")
|
|
|
310 |
@app.get("/generate_song")
|
311 |
async def generate_song(request:SongRequest):
|
312 |
text=f"""You are a bard in a video game singing the tales of a little girl in red hood. The user request a song about : {request.prompt}"""
|
|
|
306 |
# print("received : ",chunk)
|
307 |
# yield chunk#
|
308 |
#
|
309 |
+
# return StreamingResponse(audio_stream(),media_type="audio/mpeg")
|
310 |
+
@app.post("/generate_song")
|
311 |
@app.get("/generate_song")
|
312 |
async def generate_song(request:SongRequest):
|
313 |
text=f"""You are a bard in a video game singing the tales of a little girl in red hood. The user request a song about : {request.prompt}"""
|