freealise commited on
Commit
00c313f
1 Parent(s): 01ad650

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -451,6 +451,7 @@ with gr.Blocks(css=css) as demo:
451
  blur_in = gr.Textbox(value="", label="Kernel size", show_label=False)
452
  with gr.Accordion(label="Locations", open=False):
453
  offset = gr.HTML(value="""<input type='text' id='kbrd' onkeydown='
 
454
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
455
  var evt = document.createEvent(\"Event\");
456
  evt.initEvent(\"click\", true, false);
@@ -554,22 +555,23 @@ with gr.Blocks(css=css) as demo:
554
  default:
555
  this.value = \"\";
556
  }
 
557
  '/><pre onload='
558
  this.innerHTML.replace(/[weasdzx]/gi, function(c){
559
- return \"<b color=red>\" + c + \"</b>\";
560
  });
561
  this.innerHTML.replace(/[tyfghvb]/gi, function(c){
562
- return \"<b color=green>\" + c + \"</b>\";
563
  });
564
  this.innerHTML.replace(/[iojklm,]/gi, function(c){
565
- return \"<b color=blue>\" + c + \"</b>\";
566
  });
567
  '>
568
- ` 1 2 3 4 5 6 7 8 9 0 - = _<_
569
- |- Q W E R T Y U I O P { } | |
570
- CAP A S D F G H J K L ; ' # |_|
571
- ^ \ Z X C V B N M , . / __^__
572
- c move rotate scale a c
573
  </pre>""")
574
  selected = gr.Number(elem_id="fnum", value=0, minimum=0, maximum=256, interactive=False)
575
  output_frame.select(fn=select_frame, inputs=None, outputs=[output_depth, selected], show_progress='hidden')
 
451
  blur_in = gr.Textbox(value="", label="Kernel size", show_label=False)
452
  with gr.Accordion(label="Locations", open=False):
453
  offset = gr.HTML(value="""<input type='text' id='kbrd' onkeydown='
454
+ if (BABYLON) {
455
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
456
  var evt = document.createEvent(\"Event\");
457
  evt.initEvent(\"click\", true, false);
 
555
  default:
556
  this.value = \"\";
557
  }
558
+ }
559
  '/><pre onload='
560
  this.innerHTML.replace(/[weasdzx]/gi, function(c){
561
+ return \"<b style=&quot;color:red&quot;>\" + c + \"</b>\";
562
  });
563
  this.innerHTML.replace(/[tyfghvb]/gi, function(c){
564
+ return \"<b style=&quot;color:green&quot;>\" + c + \"</b>\";
565
  });
566
  this.innerHTML.replace(/[iojklm,]/gi, function(c){
567
+ return \"<b style=&quot;color:blue&quot;>\" + c + \"</b>\";
568
  });
569
  '>
570
+ ` 1 2 3 4 5 6 7 8 9 0 - =
571
+ Q W E R T Y U I O P { }
572
+ A S D F G H J K L ; '
573
+ Z X C V B N M , . /
574
+ move rotate scale
575
  </pre>""")
576
  selected = gr.Number(elem_id="fnum", value=0, minimum=0, maximum=256, interactive=False)
577
  output_frame.select(fn=select_frame, inputs=None, outputs=[output_depth, selected], show_progress='hidden')