Jofthomas HF staff commited on
Commit
7f18929
1 Parent(s): b667879

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. TextGen/router.py +1 -1
TextGen/router.py CHANGED
@@ -80,7 +80,7 @@ def inference(message: Message):
80
  def determine_vocie_from_npc(npc):
81
  return "./voices/blacksmith.mp3"
82
 
83
- @app.get("/generate_wav")
84
  async def generate_wav(message:VoiceMessage):
85
  try:
86
  voice=determine_vocie_from_npc(message.npc)
 
80
  def determine_vocie_from_npc(npc):
81
  return "./voices/blacksmith.mp3"
82
 
83
+ @app.post("/generate_wav")
84
  async def generate_wav(message:VoiceMessage):
85
  try:
86
  voice=determine_vocie_from_npc(message.npc)