freealise commited on
Commit
d010386
1 Parent(s): bb61f71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -335,6 +335,7 @@ with gr.Blocks(css=css) as demo:
335
  BABYLON.Engine.LastCreatedScene.getNodes()[1].material.pointSize = Math.ceil(Math.log2(Math.PI/this.value));
336
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
337
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {
 
338
  pipeline: new BABYLON.DefaultRenderingPipeline(\"default\", true, BABYLON.Engine.LastCreatedScene, [BABYLON.Engine.LastCreatedScene.activeCamera])
339
  }
340
  }
@@ -347,6 +348,7 @@ with gr.Blocks(css=css) as demo:
347
  contrast = gr.HTML(value="""<label for='contrast'>Contrast</label><input id='contrast' type='range' style='width:256px;height:1em;' min='0' max='2' step='0.001' oninput='
348
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
349
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {
 
350
  pipeline: new BABYLON.DefaultRenderingPipeline(\"default\", true, BABYLON.Engine.LastCreatedScene, [BABYLON.Engine.LastCreatedScene.activeCamera])
351
  }
352
  }
@@ -357,6 +359,7 @@ with gr.Blocks(css=css) as demo:
357
  exposure = gr.HTML(value="""<label for='exposure'>Exposure</label><input id='exposure' type='range' style='width:256px;height:1em;' min='0' max='2' step='0.001' oninput='
358
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
359
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {
 
360
  pipeline: new BABYLON.DefaultRenderingPipeline(\"default\", true, BABYLON.Engine.LastCreatedScene, [BABYLON.Engine.LastCreatedScene.activeCamera])
361
  }
362
  }
 
335
  BABYLON.Engine.LastCreatedScene.getNodes()[1].material.pointSize = Math.ceil(Math.log2(Math.PI/this.value));
336
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
337
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {
338
+ screenshot: true,
339
  pipeline: new BABYLON.DefaultRenderingPipeline(\"default\", true, BABYLON.Engine.LastCreatedScene, [BABYLON.Engine.LastCreatedScene.activeCamera])
340
  }
341
  }
 
348
  contrast = gr.HTML(value="""<label for='contrast'>Contrast</label><input id='contrast' type='range' style='width:256px;height:1em;' min='0' max='2' step='0.001' oninput='
349
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
350
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {
351
+ screenshot: true,
352
  pipeline: new BABYLON.DefaultRenderingPipeline(\"default\", true, BABYLON.Engine.LastCreatedScene, [BABYLON.Engine.LastCreatedScene.activeCamera])
353
  }
354
  }
 
359
  exposure = gr.HTML(value="""<label for='exposure'>Exposure</label><input id='exposure' type='range' style='width:256px;height:1em;' min='0' max='2' step='0.001' oninput='
360
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
361
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {
362
+ screenshot: true,
363
  pipeline: new BABYLON.DefaultRenderingPipeline(\"default\", true, BABYLON.Engine.LastCreatedScene, [BABYLON.Engine.LastCreatedScene.activeCamera])
364
  }
365
  }