xuan2k commited on
Commit
c071a86
1 Parent(s): cde08ad

update thesis demo with SAM

Browse files
Files changed (1) hide show
  1. test.py +3 -3
test.py CHANGED
@@ -4,7 +4,7 @@ warnings.filterwarnings('ignore')
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,8 +17,8 @@ os.environ["CUDA_VISIBLE_DEVICES"] = "0"
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
 
 
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