freealise commited on
Commit
201037e
1 Parent(s): f6a74ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -364,13 +364,13 @@ with gr.Blocks(css=css) as demo:
364
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata.pipeline.imageProcessing.exposure = this.value;
365
  this.parentNode.childNodes[2].innerText = BABYLON.Engine.LastCreatedScene.activeCamera.metadata.pipeline.imageProcessing.exposure;
366
  '/><span>1.0</span>""")
367
- canvas = gr.HTML(value="""<a href='#' onclick=\"
368
- var cntxt = document.getElementsByClassName('model3D')[0].getElementsByTagName('canvas')[0].getContext('webgl2');
369
  this.innerText = cntxt;
370
  BABYLON.Tools.CreateScreenshot(BABYLON.Engine.LastCreatedScene.getEngine(), BABYLON.Engine.LastCreatedScene.activeCamera, {forceDownload: false, precision: 1.0, (durl) => {
371
- document.getElementById('img_out').src = durl;
372
  }});
373
- \">webgl2</a><br/><img src='' id='img_out'/>""")
374
  render = gr.Button("Render")
375
 
376
  def on_submit(uploaded_video,model_type):
 
364
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata.pipeline.imageProcessing.exposure = this.value;
365
  this.parentNode.childNodes[2].innerText = BABYLON.Engine.LastCreatedScene.activeCamera.metadata.pipeline.imageProcessing.exposure;
366
  '/><span>1.0</span>""")
367
+ canvas = gr.HTML(value="""<a href='#' onclick='
368
+ var cntxt = document.getElementsByClassName(\'model3D\')[0].getElementsByTagName(\'canvas\')[0].getContext(\'webgl2\');
369
  this.innerText = cntxt;
370
  BABYLON.Tools.CreateScreenshot(BABYLON.Engine.LastCreatedScene.getEngine(), BABYLON.Engine.LastCreatedScene.activeCamera, {forceDownload: false, precision: 1.0, (durl) => {
371
+ document.getElementById(\'img_out\').src = durl;
372
  }});
373
+ '/>webgl2</a><br/><img src='' id='img_out'/>""")
374
  render = gr.Button("Render")
375
 
376
  def on_submit(uploaded_video,model_type):