linux-xfce4 / app.py
Serg4451D's picture
Create app.py
2cd2071 verified
raw
history blame contribute delete
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()