Spaces:
Build error
Build error
Download app.py from Serg4451D/linux-xfce4: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/Serg4451D/linux-xfce4/resolve/main/app.py
- Command line
-
hf download hf://spaces/Serg4451D/linux-xfce4/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Serg4451D/linux-xfce4/resolve/main/app.py
420 Bytes
| import gradio as gr | |
| import subprocess | |
| def start_vnc(): | |
| # Здесь мы просто возвращаем URL для доступа к VNC через noVNC | |
| return "http://localhost:6080/vnc.html" | |
| iface = gr.Interface( | |
| fn=start_vnc, | |
| inputs=[], | |
| outputs=gr.Textbox(label="VNC URL"), | |
| title="XFCE Desktop", | |
| description="Click the button to start the XFCE desktop environment." | |
| ) | |
| iface.launch() |