binary1ne commited on
Commit
df9ced6
·
verified ·
1 Parent(s): 6d246d3

Update webui_with_vnc.py

Browse files
Files changed (1) hide show
  1. webui_with_vnc.py +3 -1
webui_with_vnc.py CHANGED
@@ -81,8 +81,10 @@ def main():
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('<iframe src="http://localhost:6080/vnc.html" width="100%" height="800" style="border:none;"></iframe>')
86
 
87
  demo.queue().launch(server_name=args.ip, server_port=args.port)
88
 
 
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('<iframe src="http://0.0.0.0:6080/vnc.html" width="100%" height="800" style="border:none;"></iframe>')
88
 
89
  demo.queue().launch(server_name=args.ip, server_port=args.port)
90