clone3 commited on
Commit
f64de50
·
1 Parent(s): 88ba05f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- iface = gr.Interface(fn=send_wss_request, inputs=["text", "text"], outputs="text")
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())