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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,5 +1,6 @@
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,5 +67,5 @@ async def send_wss_request():
66
  # Sleep for 30 minutes before the next iteration
67
  await asyncio.sleep(30 * 60)
68
 
69
- # Run the event loop
70
- asyncio.get_event_loop().run_until_complete(send_wss_request())
 
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
  # 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()