MAZALA2024
commited on
Commit
•
042b008
1
Parent(s):
294bfd5
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import asyncio
|
2 |
import datetime
|
3 |
import logging
|
@@ -161,6 +164,6 @@ with app:
|
|
161 |
[info_text, edge_tts_output, tts_output],
|
162 |
)
|
163 |
|
164 |
-
# Modify the launch line to enable
|
165 |
-
app.launch(
|
166 |
|
|
|
1 |
+
import nest_asyncio
|
2 |
+
nest_asyncio.apply()
|
3 |
+
|
4 |
import asyncio
|
5 |
import datetime
|
6 |
import logging
|
|
|
164 |
[info_text, edge_tts_output, tts_output],
|
165 |
)
|
166 |
|
167 |
+
# Modify the launch line to enable more concurrent jobs
|
168 |
+
app.queue(concurrency_count=20, max_size=100).launch(server_name="0.0.0.0", share=True, inbrowser=True)
|
169 |
|