nikkmitra commited on
Commit
6cde02f
·
verified ·
1 Parent(s): 3af94f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -98,12 +98,9 @@ def tts_generate(text, voice, language):
98
 
99
  return temp_audio_path
100
 
101
- @spaces.GPU(enable_queue=True)
102
  def clone_voice(text, audio_file, language):
103
- # Check for Hindi language and split text if necessary
104
- if language == "hi":
105
- text = split_text_into_chunks(text, max_tokens=100, language=language)
106
-
107
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as temp_audio:
108
  temp_audio_path = temp_audio.name
109
 
 
98
 
99
  return temp_audio_path
100
 
101
+ @spaces.GPU(duration=120)
102
  def clone_voice(text, audio_file, language):
103
+ print("cloning")
 
 
 
104
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as temp_audio:
105
  temp_audio_path = temp_audio.name
106