Spaces:
Running
Running
Update app.py
Browse files
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
|
560 |
});
|
561 |
this.innerHTML.replace(/[tyfghvb]/gi, function(c){
|
562 |
-
return \"<b color
|
563 |
});
|
564 |
this.innerHTML.replace(/[iojklm,]/gi, function(c){
|
565 |
-
return \"<b color
|
566 |
});
|
567 |
'>
|
568 |
-
` 1 2 3 4 5 6 7 8 9 0 - =
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
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="color:red">\" + c + \"</b>\";
|
562 |
});
|
563 |
this.innerHTML.replace(/[tyfghvb]/gi, function(c){
|
564 |
+
return \"<b style="color:green">\" + c + \"</b>\";
|
565 |
});
|
566 |
this.innerHTML.replace(/[iojklm,]/gi, function(c){
|
567 |
+
return \"<b style="color:blue">\" + 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')
|