Warlord-K commited on
Commit
c3eca6a
·
verified ·
1 Parent(s): 8bac54d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -39,14 +39,17 @@ async def process_image(image, language):
39
 
40
  # Select TTS model based on language
41
  tts_model = "fal-ai/kokoro/american-english"
 
42
  if language == "Hindi":
43
  tts_model = "fal-ai/kokoro/hindi"
 
44
 
45
  # Call FAL API for text-to-speech
46
  tts_result = await fal_client.async_client.run(
47
  tts_model,
48
  arguments={
49
- "text": compliment_text
 
50
  }
51
  )
52
 
 
39
 
40
  # Select TTS model based on language
41
  tts_model = "fal-ai/kokoro/american-english"
42
+ voice = "af_heart"
43
  if language == "Hindi":
44
  tts_model = "fal-ai/kokoro/hindi"
45
+ voice = "hf_alpha"
46
 
47
  # Call FAL API for text-to-speech
48
  tts_result = await fal_client.async_client.run(
49
  tts_model,
50
  arguments={
51
+ "prompt": compliment_text,
52
+ "voice": voice,
53
  }
54
  )
55