freealise commited on
Commit
4d4ff7e
·
verified ·
1 Parent(s): 4e37c70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -859,7 +859,7 @@ with gr.Blocks(css=css, js=js) as demo:
859
  with gr.Accordion(label="Depths", open=False):
860
  output_depth = gr.Files(label="Depth files", interactive=False)
861
  with gr.Group():
862
- output_mask = gr.ImageEditor(layers=False, sources=('clipboard'), show_download_button=True, type="numpy", interactive=False, transforms=(None,), eraser=gr.Eraser(), brush=gr.Brush(default_size=0, colors=['black', '#505050', '#a0a0a0', 'white']), elem_id="image_edit")
863
  with gr.Accordion(label="Border", open=False):
864
  boffset = gr.Slider(label="Offset", value=1, maximum=256, minimum=0, step=1)
865
  bsize = gr.Slider(label="Size", value=32, maximum=256, minimum=0, step=1)
@@ -872,7 +872,7 @@ with gr.Blocks(css=css, js=js) as demo:
872
  model_type = gr.Dropdown([("small", "vits"), ("base", "vitb"), ("large", "vitl"), ("giant", "vitg")], type="value", value="vits", label='Model Type')
873
  processed_video = gr.Video(label="Output Video", format="mp4", interactive=False)
874
  processed_zip = gr.File(label="Output Archive", interactive=False)
875
- result = gr.Model3D(label="3D Mesh", clear_color=[0.5, 0.5, 0.5, 0.0], camera_position=[0, 90, 0], zoom_speed=2.0, pan_speed=2.0, interactive=False, elem_id="model3D")
876
  with gr.Tab("Blur"):
877
  chart_c = gr.HTML(elem_id="chart_c", value="""<div id='chart' onpointermove='window.drawLine(event.clientX, event.clientY);' onpointerdown='window.pointerDown(event.clientX, event.clientY);' onpointerup='window.pointerUp();' onpointerleave='window.pointerUp();' onpointercancel='window.pointerUp();' onclick='window.resetLine();'></div>
878
  <style>
 
859
  with gr.Accordion(label="Depths", open=False):
860
  output_depth = gr.Files(label="Depth files", interactive=False)
861
  with gr.Group():
862
+ output_mask = gr.ImageEditor(layers=False, sources=('clipboard'), show_download_button=True, type="numpy", interactive=True, transforms=(None,), eraser=gr.Eraser(), brush=gr.Brush(default_size=0, colors=['black', '#505050', '#a0a0a0', 'white']), elem_id="image_edit")
863
  with gr.Accordion(label="Border", open=False):
864
  boffset = gr.Slider(label="Offset", value=1, maximum=256, minimum=0, step=1)
865
  bsize = gr.Slider(label="Size", value=32, maximum=256, minimum=0, step=1)
 
872
  model_type = gr.Dropdown([("small", "vits"), ("base", "vitb"), ("large", "vitl"), ("giant", "vitg")], type="value", value="vits", label='Model Type')
873
  processed_video = gr.Video(label="Output Video", format="mp4", interactive=False)
874
  processed_zip = gr.File(label="Output Archive", interactive=False)
875
+ result = gr.Model3D(label="3D Mesh", clear_color=[0.5, 0.5, 0.5, 0.0], camera_position=[0, 90, 0], zoom_speed=2.0, pan_speed=2.0, interactive=True, elem_id="model3D")
876
  with gr.Tab("Blur"):
877
  chart_c = gr.HTML(elem_id="chart_c", value="""<div id='chart' onpointermove='window.drawLine(event.clientX, event.clientY);' onpointerdown='window.pointerDown(event.clientX, event.clientY);' onpointerup='window.pointerUp();' onpointerleave='window.pointerUp();' onpointercancel='window.pointerUp();' onclick='window.resetLine();'></div>
878
  <style>