Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
70 |
-
|
|
|
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()
|