nktssk commited on
Commit
9de6643
·
verified ·
1 Parent(s): 80f5255

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -2,6 +2,9 @@ import os
2
  import gradio as gr
3
  from transformers import pipeline
4
 
 
 
 
5
  def launch(input_image):
6
  out = depth_estimator(input_image)
7
 
 
2
  import gradio as gr
3
  from transformers import pipeline
4
 
5
+ depth_estimator = pipeline(task="depth-estimation",
6
+ model="Intel/dpt-hybrid-midas")
7
+
8
  def launch(input_image):
9
  out = depth_estimator(input_image)
10