Spaces:
Sleeping
Sleeping
Update Utils/convert_raster.py
Browse files- Utils/convert_raster.py +1 -5
Utils/convert_raster.py
CHANGED
@@ -3,11 +3,7 @@ import numpy as np
|
|
3 |
import os
|
4 |
import tempfile
|
5 |
from PIL import Image
|
6 |
-
|
7 |
-
from osgeo import gdal
|
8 |
-
st.write("GDAL successfully imported. Version:", gdal.__version__)
|
9 |
-
except ImportError as e:
|
10 |
-
st.write("Failed to import GDAL:", str(e))
|
11 |
|
12 |
|
13 |
def convert_gtiff_to_8bit(src):
|
|
|
3 |
import os
|
4 |
import tempfile
|
5 |
from PIL import Image
|
6 |
+
from osgeo import gdal
|
|
|
|
|
|
|
|
|
7 |
|
8 |
|
9 |
def convert_gtiff_to_8bit(src):
|