Jofthomas HF staff commited on
Commit
bbcd7e3
·
verified ·
1 Parent(s): 3311ff7

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. TextGen/router.py +2 -2
TextGen/router.py CHANGED
@@ -8,7 +8,7 @@ from fastapi.middleware.cors import CORSMiddleware
8
  from langchain.chains import LLMChain
9
  from langchain.prompts import PromptTemplate
10
  from TextGen.suno import custom_generate_audio, get_audio_information
11
- #from TextGen.coqui import predict
12
  from langchain_google_genai import (
13
  ChatGoogleGenerativeAI,
14
  HarmBlockThreshold,
@@ -165,7 +165,7 @@ async def generate_voice(message: VoiceMessage):
165
 
166
  # Generator function to yield audio chunks
167
  async def audio_stream():
168
- result = tts_client.predict(
169
  prompt=message.input,
170
  language=message.language,
171
  audio_file_pth=audio_file_pth,
 
8
  from langchain.chains import LLMChain
9
  from langchain.prompts import PromptTemplate
10
  from TextGen.suno import custom_generate_audio, get_audio_information
11
+ from TextGen.coqui import predict
12
  from langchain_google_genai import (
13
  ChatGoogleGenerativeAI,
14
  HarmBlockThreshold,
 
165
 
166
  # Generator function to yield audio chunks
167
  async def audio_stream():
168
+ result = predict(
169
  prompt=message.input,
170
  language=message.language,
171
  audio_file_pth=audio_file_pth,