Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import os
|
2 |
|
|
|
|
|
3 |
os.system("python3 -m pip install -U discord.py flask colorama waitress")
|
4 |
|
5 |
# test again?
|
@@ -255,6 +257,10 @@ async def start():
|
|
255 |
token = os.environ["TOKEN"]
|
256 |
if token == "":
|
257 |
raise Exception("Please add your token to the Secrets pane.")
|
258 |
-
client.run(token)
|
259 |
print("started gradio app")
|
260 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
2 |
|
3 |
+
from multiprocess import Process
|
4 |
+
|
5 |
os.system("python3 -m pip install -U discord.py flask colorama waitress")
|
6 |
|
7 |
# test again?
|
|
|
257 |
token = os.environ["TOKEN"]
|
258 |
if token == "":
|
259 |
raise Exception("Please add your token to the Secrets pane.")
|
|
|
260 |
print("started gradio app")
|
261 |
+
Process(target=start).start()
|
262 |
+
|
263 |
+
def t():
|
264 |
+
client.run(token)
|
265 |
+
|
266 |
+
Process(target=t).start()
|