VoiceCloning-be commited on
Commit
2aef491
1 Parent(s): 8fdc3ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import edge_tts
3
  import asyncio
@@ -10,7 +11,6 @@ async def get_voices():
10
  return {f"{v['ShortName']} - {v['Locale']} ({v['Gender']})": v['ShortName'] for v in voices}
11
 
12
  # Text-to-speech function
13
- @spaces.GPU
14
  async def text_to_speech(text, voice, rate, pitch):
15
  if not text.strip():
16
  return None, gr.Warning("Please enter text to convert.")
 
1
+ import spaces
2
  import gradio as gr
3
  import edge_tts
4
  import asyncio
 
11
  return {f"{v['ShortName']} - {v['Locale']} ({v['Gender']})": v['ShortName'] for v in voices}
12
 
13
  # Text-to-speech function
 
14
  async def text_to_speech(text, voice, rate, pitch):
15
  if not text.strip():
16
  return None, gr.Warning("Please enter text to convert.")