Spaces:
Sleeping
Sleeping
souvikmaji22
commited on
Commit
•
2d3a9b6
1
Parent(s):
4d5612a
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
|
|
|
|
|
|
|
|
4 |
def launch(input_image):
|
5 |
out = depth_estimator(input_image)
|
6 |
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
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 |
|