Spaces:
Sleeping
Sleeping
Update TextGen/router.py
Browse files- TextGen/router.py +1 -1
TextGen/router.py
CHANGED
@@ -166,7 +166,7 @@ async def generate_wav(message: VoiceMessage):
|
|
166 |
|
167 |
except Exception as e:
|
168 |
raise HTTPException(status_code=500, detail=str(e))
|
169 |
-
@app.
|
170 |
async def generate_voice(message: VoiceMessage):
|
171 |
audio_stream = Eleven_client.generate(
|
172 |
text=message.input,
|
|
|
166 |
|
167 |
except Exception as e:
|
168 |
raise HTTPException(status_code=500, detail=str(e))
|
169 |
+
@app.get("/generate_voice")
|
170 |
async def generate_voice(message: VoiceMessage):
|
171 |
audio_stream = Eleven_client.generate(
|
172 |
text=message.input,
|