Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,42 +10,42 @@ iface = gr.Interface(
|
|
10 |
title="Image Uploader",
|
11 |
description="Upload an image and see the result below."
|
12 |
)
|
13 |
-
|
14 |
-
from PIL import Image
|
15 |
-
import os
|
16 |
-
import numpy as np
|
17 |
-
import urllib.request
|
18 |
-
import glob
|
19 |
-
|
20 |
-
# intake library and plugin
|
21 |
-
# import intake
|
22 |
-
# from intake_zenodo_fetcher import download_zenodo_files_for_entry
|
23 |
-
|
24 |
-
# geospatial libraries
|
25 |
-
import geopandas as gpd
|
26 |
-
|
27 |
-
from rasterio.transform import from_origin
|
28 |
-
import rasterio.features
|
29 |
-
|
30 |
-
import fiona
|
31 |
-
|
32 |
-
from shapely.geometry import shape, mapping, box
|
33 |
-
from shapely.geometry.multipolygon import MultiPolygon
|
34 |
-
|
35 |
-
# machine learning libraries
|
36 |
-
from detectron2 import model_zoo
|
37 |
-
from detectron2.engine import DefaultPredictor
|
38 |
-
from detectron2.utils.visualizer import Visualizer, ColorMode
|
39 |
-
from detectron2.config import get_cfg
|
40 |
-
from detectron2.engine import DefaultTrainer
|
41 |
-
|
42 |
-
# visualisation
|
43 |
-
# import holoviews as hv
|
44 |
-
# from IPython.display import display
|
45 |
-
# import geoviews.tile_sources as gts
|
46 |
-
|
47 |
-
# import hvplot.pandas
|
48 |
-
# import hvplot.xarray
|
49 |
|
50 |
# hv.extension('bokeh', width=100)
|
51 |
iface.launch(server_port=7861)
|
|
|
10 |
title="Image Uploader",
|
11 |
description="Upload an image and see the result below."
|
12 |
)
|
13 |
+
|
14 |
+
# from PIL import Image
|
15 |
+
# import os
|
16 |
+
# import numpy as np
|
17 |
+
# import urllib.request
|
18 |
+
# import glob
|
19 |
+
|
20 |
+
# # intake library and plugin
|
21 |
+
# # import intake
|
22 |
+
# # from intake_zenodo_fetcher import download_zenodo_files_for_entry
|
23 |
+
|
24 |
+
# # geospatial libraries
|
25 |
+
# import geopandas as gpd
|
26 |
+
|
27 |
+
# from rasterio.transform import from_origin
|
28 |
+
# import rasterio.features
|
29 |
+
|
30 |
+
# import fiona
|
31 |
+
|
32 |
+
# from shapely.geometry import shape, mapping, box
|
33 |
+
# from shapely.geometry.multipolygon import MultiPolygon
|
34 |
+
|
35 |
+
# # machine learning libraries
|
36 |
+
# from detectron2 import model_zoo
|
37 |
+
# from detectron2.engine import DefaultPredictor
|
38 |
+
# from detectron2.utils.visualizer import Visualizer, ColorMode
|
39 |
+
# from detectron2.config import get_cfg
|
40 |
+
# from detectron2.engine import DefaultTrainer
|
41 |
+
|
42 |
+
# # visualisation
|
43 |
+
# # import holoviews as hv
|
44 |
+
# # from IPython.display import display
|
45 |
+
# # import geoviews.tile_sources as gts
|
46 |
+
|
47 |
+
# # import hvplot.pandas
|
48 |
+
# # import hvplot.xarray
|
49 |
|
50 |
# hv.extension('bokeh', width=100)
|
51 |
iface.launch(server_port=7861)
|