yerang commited on
Commit
13f9689
1 Parent(s): 1f0c2aa

Update setup_environment.py

Browse files
Files changed (1) hide show
  1. setup_environment.py +0 -25
setup_environment.py CHANGED
@@ -110,29 +110,6 @@ def add_to_ld_library_path(library_dir):
110
  print("유효한 라이브러리 경로가 없습니다.")
111
 
112
 
113
- def download_files_from_url():
114
- os.makedirs('/tmp/stf',exist_ok=True)
115
- os.makedirs('/tmp/stf/TEMP',exist_ok=True)
116
-
117
- file_id=os.getenv('DOWNLOAD_1')
118
- url = f"https://drive.google.com/uc?id={file_id}"
119
- gdown.download(url, '/tmp/stf-api-alternative.zip', quiet=False)
120
- zipfile.ZipFile('/tmp/stf-api-alternative.zip', 'r').extractall('/tmp/stf/')
121
-
122
- file_id=os.getenv('DOWNLOAD_2')
123
- url = f"https://drive.google.com/uc?id={file_id}"
124
- gdown.download(url, '/tmp/stf/089.pth', quiet=False)
125
-
126
-
127
- file_id=os.getenv('DOWNLOAD_3')
128
- url = f"https://drive.google.com/uc?id={file_id}"
129
- gdown.download(url, '/tmp/stf/TEMP/0157.pth', quiet=False)
130
-
131
- os.remove('/tmp/stf-api-alternative.zip')
132
- os.remove('/tmp/stf/089.pth')
133
- os.remove('/tmp/stf/TEMP/0157.pth')
134
-
135
-
136
 
137
 
138
  def initialize_environment():
@@ -146,8 +123,6 @@ def initialize_environment():
146
  print('11111111')
147
  check_stf_alternative_installed()
148
 
149
- # 여기서 파일 다운로드
150
- download_files_from_url()
151
 
152
  # stf-api-alternative에서 pip install . 실행
153
  run_pip_install("/tmp/stf/stf-api-alternative")
 
110
  print("유효한 라이브러리 경로가 없습니다.")
111
 
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
 
114
 
115
  def initialize_environment():
 
123
  print('11111111')
124
  check_stf_alternative_installed()
125
 
 
 
126
 
127
  # stf-api-alternative에서 pip install . 실행
128
  run_pip_install("/tmp/stf/stf-api-alternative")