Serg4451D commited on
Commit
2cd2071
·
verified ·
1 Parent(s): 819675f

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import subprocess
3
+
4
+ def start_vnc():
5
+ # Здесь мы просто возвращаем URL для доступа к VNC через noVNC
6
+ return "http://localhost:6080/vnc.html"
7
+
8
+ iface = gr.Interface(
9
+ fn=start_vnc,
10
+ inputs=[],
11
+ outputs=gr.Textbox(label="VNC URL"),
12
+ title="XFCE Desktop",
13
+ description="Click the button to start the XFCE desktop environment."
14
+ )
15
+
16
+ iface.launch()