freealise commited on
Commit
c3cbd76
·
verified ·
1 Parent(s): 890c4f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -1122,14 +1122,19 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
1122
  <a onclick='snapshot();'>Screenshot</a><br/>
1123
  <img src='' id='img_out' onload='var ctxt = document.getElementById(\"cnv_out\").getContext(\"2d\");ctxt.drawImage(this, 0, 0);'/><br/>
1124
  <canvas id='cnv_out'></canvas>
1125
- <div id='compass_box' onclick='
 
1126
  const model3D = document.getElementById(\"model3D\");
1127
- if (model3D.parentNode != document.body) {
1128
- window.modelContainer = model3D.parentNode;
1129
- model3D.parentNode = document.body;
 
1130
  } else {
1131
- model3D.parentNode = window.modelContainer;
1132
- }'><div id='compass'><b style='color:blue;'>◅</b>𝍠<b style='color:red;'>▻</b></div></div>
 
 
 
1133
  """)
1134
  render = gr.Button("Render")
1135
  input_json.input(show_json, inputs=[input_json], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])
 
1122
  <a onclick='snapshot();'>Screenshot</a><br/>
1123
  <img src='' id='img_out' onload='var ctxt = document.getElementById(\"cnv_out\").getContext(\"2d\");ctxt.drawImage(this, 0, 0);'/><br/>
1124
  <canvas id='cnv_out'></canvas>
1125
+ <div id='compass_box'><div id='compass'><b style='color:blue;'>◅</b>𝍠<b style='color:red;'>▻</b></div>
1126
+ <a id='fullscreen' onclick='
1127
  const model3D = document.getElementById(\"model3D\");
1128
+ if (model3D.style.width != \"100vw\") {
1129
+ model3D.style.width = \"100vw\";
1130
+ model3D.style.height = \"100vh\";
1131
+ model3D.style.position = \"fixed\";
1132
  } else {
1133
+ model3D.style.width = \"initial\";
1134
+ model3D.style.height = \"initial\";
1135
+ model3D.style.position = \"initial\";
1136
+ }'>[+]</a>
1137
+ </div>
1138
  """)
1139
  render = gr.Button("Render")
1140
  input_json.input(show_json, inputs=[input_json], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])