Spaces:
Runtime error
Runtime error
update thesis demo with SAM
Browse files
test.py
CHANGED
@@ -4,7 +4,7 @@ warnings.filterwarnings('ignore')
|
|
4 |
|
5 |
import subprocess, io, os, sys, time
|
6 |
|
7 |
-
|
8 |
|
9 |
import gradio as gr
|
10 |
from loguru import logger
|
@@ -17,8 +17,8 @@ os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
|
17 |
|
18 |
logger.info(f"Start app...")
|
19 |
|
20 |
-
|
21 |
-
|
22 |
|
23 |
sys.path.insert(0, './GroundingDINO')
|
24 |
|
|
|
4 |
|
5 |
import subprocess, io, os, sys, time
|
6 |
|
7 |
+
os.system("pip install gradio==3.50.2")
|
8 |
|
9 |
import gradio as gr
|
10 |
from loguru import logger
|
|
|
17 |
|
18 |
logger.info(f"Start app...")
|
19 |
|
20 |
+
result = subprocess.run(['pip', 'list'], check=True)
|
21 |
+
print(f'pip list = {result}')
|
22 |
|
23 |
sys.path.insert(0, './GroundingDINO')
|
24 |
|