Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import os
|
2 |
import secrets
|
|
|
3 |
import gradio as gr
|
4 |
from AudioFusion import Fusion
|
5 |
|
@@ -151,11 +152,10 @@ async def initiation():
|
|
151 |
if __name__ == '__main__':
|
152 |
client.start(bot_token=BOT_TOKEN)
|
153 |
client.loop.run_until_complete(initiation())
|
154 |
-
print("Bot started succefully")
|
155 |
thread_one = threading.Thread(target=client.run_until_disconnected)
|
156 |
thread_two = threading.Thread(target=iface.launch, kwargs={"share": False})
|
157 |
|
158 |
# Start the threads
|
159 |
thread_one.start()
|
160 |
-
|
161 |
-
(
|
|
|
1 |
import os
|
2 |
import secrets
|
3 |
+
import threading
|
4 |
import gradio as gr
|
5 |
from AudioFusion import Fusion
|
6 |
|
|
|
152 |
if __name__ == '__main__':
|
153 |
client.start(bot_token=BOT_TOKEN)
|
154 |
client.loop.run_until_complete(initiation())
|
|
|
155 |
thread_one = threading.Thread(target=client.run_until_disconnected)
|
156 |
thread_two = threading.Thread(target=iface.launch, kwargs={"share": False})
|
157 |
|
158 |
# Start the threads
|
159 |
thread_one.start()
|
160 |
+
print("Bot started succefully")
|
161 |
+
thread_two.start()
|