binary1ne commited on
Commit
7a3babc
·
verified ·
1 Parent(s): c4797a1

Update webui_with_vnc.py

Browse files
Files changed (1) hide show
  1. webui_with_vnc.py +1 -3
webui_with_vnc.py CHANGED
@@ -81,10 +81,8 @@ def main():
81
  base_ui.render()
82
 
83
  with gr.Tab("Web VNC"):
84
- response = os.popen('curl -s http://127.0.0.1:6080/vnc.html').read()
85
- print("##### Curl Response ",response)
86
  # The iframe must point to the actual noVNC server (default: localhost:6080/vnc.html)
87
- gr.HTML(f'<p>{response}</p><iframe src="http://0.0.0.0:6080/vnc.html" width="100%" height="800" style="border:1px solid red;"></iframe>')
88
 
89
  demo.queue().launch(server_name=args.ip, server_port=args.port)
90
 
 
81
  base_ui.render()
82
 
83
  with gr.Tab("Web VNC"):
 
 
84
  # The iframe must point to the actual noVNC server (default: localhost:6080/vnc.html)
85
+ gr.HTML(f'<p>{response}</p><iframe src="http://localhost:6080/vnc.html" width="100%" height="800" style="border:1px solid red;"></iframe>')
86
 
87
  demo.queue().launch(server_name=args.ip, server_port=args.port)
88