Spaces:
Build error
Build error
File size: 420 Bytes
2cd2071 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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() |