Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -142,7 +142,6 @@ async def start_handler(event):
|
|
142 |
|
143 |
@client.on(events.NewMessage(pattern='/rungradio'))
|
144 |
async def broadcast_handler(event):
|
145 |
-
threading.Thread(target=iface.launch).start() #(share=False)
|
146 |
message_to_broadcast = "Gradio running..."
|
147 |
await event.respond(message_to_broadcast)
|
148 |
|
@@ -153,6 +152,7 @@ async def initiation():
|
|
153 |
if __name__ == '__main__':
|
154 |
client.start(bot_token=BOT_TOKEN)
|
155 |
client.loop.run_until_complete(initiation())
|
|
|
156 |
print("Bot started succefully")
|
157 |
client.run_until_disconnected()
|
158 |
|
|
|
142 |
|
143 |
@client.on(events.NewMessage(pattern='/rungradio'))
|
144 |
async def broadcast_handler(event):
|
|
|
145 |
message_to_broadcast = "Gradio running..."
|
146 |
await event.respond(message_to_broadcast)
|
147 |
|
|
|
152 |
if __name__ == '__main__':
|
153 |
client.start(bot_token=BOT_TOKEN)
|
154 |
client.loop.run_until_complete(initiation())
|
155 |
+
threading.Thread(target=iface.launch).start() #(share=False)
|
156 |
print("Bot started succefully")
|
157 |
client.run_until_disconnected()
|
158 |
|