Araeynn commited on
Commit
f4e1d2a
·
1 Parent(s): 9fbae99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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
- asyncio.run(start())
 
 
 
 
 
 
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()