bilal01 commited on
Commit
27e1a6e
·
1 Parent(s): 609f320

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -6,7 +6,7 @@ app = FastAPI()
6
  @app.get("/")
7
  async def root():
8
  from TTS.api import TTS
9
- tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1", gpu=True)
10
 
11
  # generate speech by cloning a voice using default settings
12
  tts.tts_to_file(text="It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.",
 
6
  @app.get("/")
7
  async def root():
8
  from TTS.api import TTS
9
+ tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1", gpu=False)
10
 
11
  # generate speech by cloning a voice using default settings
12
  tts.tts_to_file(text="It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.",