Spaces:
Running
on
Zero
Running
on
Zero
wanghaofan
commited on
Commit
•
6c9da67
1
Parent(s):
4511f84
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
import os
|
@@ -9,6 +12,8 @@ import cv2
|
|
9 |
import torch
|
10 |
import random
|
11 |
|
|
|
|
|
12 |
from controlnet_aux.open_pose import OpenposeDetector
|
13 |
from controlnet_aux.canny import CannyDetector
|
14 |
from depth_anything_v2.dpt import DepthAnythingV2
|
|
|
1 |
+
import sys
|
2 |
+
sys.path.append('./')
|
3 |
+
|
4 |
import gradio as gr
|
5 |
import spaces
|
6 |
import os
|
|
|
12 |
import torch
|
13 |
import random
|
14 |
|
15 |
+
os.system("pip install -e ./controlnet_aux")
|
16 |
+
|
17 |
from controlnet_aux.open_pose import OpenposeDetector
|
18 |
from controlnet_aux.canny import CannyDetector
|
19 |
from depth_anything_v2.dpt import DepthAnythingV2
|