Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import asyncio
|
2 |
import websockets
|
3 |
-
import gradio as gr
|
4 |
|
5 |
async def send_wss_request():
|
6 |
uri = "wss://clone3-imagex-clone-advance.hf.space/queue/join"
|
@@ -67,5 +66,4 @@ async def send_wss_request():
|
|
67 |
# Sleep for 30 minutes before the next iteration
|
68 |
await asyncio.sleep(30 * 60)
|
69 |
|
70 |
-
|
71 |
-
iface.launch()
|
|
|
1 |
import asyncio
|
2 |
import websockets
|
|
|
3 |
|
4 |
async def send_wss_request():
|
5 |
uri = "wss://clone3-imagex-clone-advance.hf.space/queue/join"
|
|
|
66 |
# Sleep for 30 minutes before the next iteration
|
67 |
await asyncio.sleep(30 * 60)
|
68 |
|
69 |
+
asyncio.get_event_loop().run_until_complete(send_wss_request())
|
|