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()