Spaces:
Running
Running
darksakura
commited on
Commit
·
1e5e583
1
Parent(s):
a9a8b17
Update tts.py
Browse files
tts.py
CHANGED
@@ -34,5 +34,8 @@ async def _main() -> None:
|
|
34 |
await communicate.save(OUTPUT_FILE)
|
35 |
|
36 |
if __name__ == "__main__":
|
37 |
-
asyncio.
|
38 |
-
|
|
|
|
|
|
|
|
34 |
await communicate.save(OUTPUT_FILE)
|
35 |
|
36 |
if __name__ == "__main__":
|
37 |
+
loop = asyncio.get_event_loop()
|
38 |
+
try:
|
39 |
+
loop.run_until_complete(_main())
|
40 |
+
finally:
|
41 |
+
loop.close()
|