白鹭先生
commited on
Commit
·
ac36657
1
Parent(s):
4a9bffc
修复
Browse files
app.py
CHANGED
@@ -2,16 +2,16 @@
|
|
2 |
Author: Egrt
|
3 |
Date: 2022-03-19 10:23:48
|
4 |
LastEditors: Egrt
|
5 |
-
LastEditTime: 2022-03-20
|
6 |
FilePath: \Luuu\app.py
|
7 |
'''
|
8 |
|
9 |
from gis import GIS
|
10 |
import gradio as gr
|
11 |
import os
|
12 |
-
os.system('pip install GDAL-3.4.1-cp38-cp38-manylinux_2_5_x86_64.whl')
|
13 |
-
os.system('apt install libgl1-mesa-glx')
|
14 |
-
os.system('pip install requirements.txt')
|
15 |
from zipfile import ZipFile
|
16 |
gis = GIS()
|
17 |
|
@@ -28,7 +28,7 @@ def inference(filepath):
|
|
28 |
zipObj.write(file_list[5], "{}.shx".format(filename))
|
29 |
zipObj.write(file_list[6], "{}.shp".format(filename))
|
30 |
zipObj.write(file_list[7], "{}.prj".format(filename))
|
31 |
-
return "
|
32 |
|
33 |
|
34 |
# --------网页信息---------- #
|
|
|
2 |
Author: Egrt
|
3 |
Date: 2022-03-19 10:23:48
|
4 |
LastEditors: Egrt
|
5 |
+
LastEditTime: 2022-03-20 20:40:49
|
6 |
FilePath: \Luuu\app.py
|
7 |
'''
|
8 |
|
9 |
from gis import GIS
|
10 |
import gradio as gr
|
11 |
import os
|
12 |
+
# os.system('pip install GDAL-3.4.1-cp38-cp38-manylinux_2_5_x86_64.whl')
|
13 |
+
# os.system('apt install libgl1-mesa-glx')
|
14 |
+
# os.system('pip install requirements.txt')
|
15 |
from zipfile import ZipFile
|
16 |
gis = GIS()
|
17 |
|
|
|
28 |
zipObj.write(file_list[5], "{}.shx".format(filename))
|
29 |
zipObj.write(file_list[6], "{}.shp".format(filename))
|
30 |
zipObj.write(file_list[7], "{}.prj".format(filename))
|
31 |
+
return "result.zip"
|
32 |
|
33 |
|
34 |
# --------网页信息---------- #
|