freealise commited on
Commit
a70a18d
1 Parent(s): 02a8267

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -297,8 +297,7 @@ function test(txt) {
297
  title = "# Depth Anything Video Demo"
298
  description = """Depth Anything on full video files.
299
  Please refer to our [paper](https://arxiv.org/abs/2401.10891), [project page](https://depth-anything.github.io), or [github](https://github.com/LiheYoung/Depth-Anything) for more details.
300
- Mesh rendering from [ZoeDepth](https://huggingface.co/spaces/shariqfarooq/ZoeDepth) ([github](https://github.com/isl-org/ZoeDepth/tree/main/ui)).
301
- [test](javascript:test('hi');)"""
302
 
303
  transform = Compose([
304
  Resize(
@@ -338,6 +337,7 @@ with gr.Blocks(css=css, js=js) as demo:
338
  processed_video = gr.Video(label="Output Video", format="mp4")
339
  processed_zip = gr.File(label="Output Archive")
340
  result = gr.Model3D(label="3D Mesh", clear_color=[0.5, 0.5, 0.5, 0.0], camera_position=[0, 90, 0], zoom_speed=0)
 
341
  render = gr.Button("Render")
342
 
343
  def on_submit(uploaded_video,model_type):
 
297
  title = "# Depth Anything Video Demo"
298
  description = """Depth Anything on full video files.
299
  Please refer to our [paper](https://arxiv.org/abs/2401.10891), [project page](https://depth-anything.github.io), or [github](https://github.com/LiheYoung/Depth-Anything) for more details.
300
+ Mesh rendering from [ZoeDepth](https://huggingface.co/spaces/shariqfarooq/ZoeDepth) ([github](https://github.com/isl-org/ZoeDepth/tree/main/ui))."""
 
301
 
302
  transform = Compose([
303
  Resize(
 
337
  processed_video = gr.Video(label="Output Video", format="mp4")
338
  processed_zip = gr.File(label="Output Archive")
339
  result = gr.Model3D(label="3D Mesh", clear_color=[0.5, 0.5, 0.5, 0.0], camera_position=[0, 90, 0], zoom_speed=0)
340
+ html = gr.HTML(value="<a href='javascript:test(JSON.stringify(BABYLON));'>test</a>")
341
  render = gr.Button("Render")
342
 
343
  def on_submit(uploaded_video,model_type):