JunchuanYu commited on
Commit
d93b84f
1 Parent(s): d74cac0

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +11 -1
run.py CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  import os,glob,h5py,time
2
  import gradio as gr
3
  from PIL import Image
@@ -6,12 +14,14 @@ from osgeo import gdal
6
  from matplotlib import pyplot as plt
7
  from tqdm import tqdm
8
 
9
- from huggingface_hub import hf_hub_download
 
10
  token = os.environ['HUB_TOKEN']
11
  loc =hf_hub_download(repo_id="JunchuanYu/file_for_rs-tile-creator", filename="utils.py",repo_type="dataset",local_dir='.',token=token)
12
  sys.path.append(loc)
13
  from utils import *
14
 
 
15
  title=(""" # <p align="center"> Remote Sensing Tile Dataset Creator 🛰️ <b>
16
  ### <p align="center"> yujunchuan (yujunchuna@mail.cgs.gov.cn)<b>""")
17
 
 
1
+ from huggingface_hub import hf_hub_download
2
+
3
+ filepath = hf_hub_download(
4
+ repo_id="Egrt/Luuuu", filename="GDAL-3.4.1-cp38-cp38-manylinux_2_5_x86_64.whl")
5
+ import os
6
+ os.system('pip install {}'.format(filepath))
7
+
8
+
9
  import os,glob,h5py,time
10
  import gradio as gr
11
  from PIL import Image
 
14
  from matplotlib import pyplot as plt
15
  from tqdm import tqdm
16
 
17
+
18
+
19
  token = os.environ['HUB_TOKEN']
20
  loc =hf_hub_download(repo_id="JunchuanYu/file_for_rs-tile-creator", filename="utils.py",repo_type="dataset",local_dir='.',token=token)
21
  sys.path.append(loc)
22
  from utils import *
23
 
24
+
25
  title=(""" # <p align="center"> Remote Sensing Tile Dataset Creator 🛰️ <b>
26
  ### <p align="center"> yujunchuan (yujunchuna@mail.cgs.gov.cn)<b>""")
27