Update app.py
Browse files
app.py
CHANGED
|
@@ -6,10 +6,8 @@ import tempfile
|
|
| 6 |
import os
|
| 7 |
import warnings
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
warnings.filterwarnings("ignore", category=ResourceWarning)
|
| 11 |
import asyncio
|
| 12 |
-
asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
|
| 13 |
|
| 14 |
def load_laz(file_path):
|
| 15 |
"""Load LAZ/LAS file and return all data."""
|
|
@@ -272,4 +270,4 @@ with gr.Blocks(title="GeoSpatial-LiDAR-3D Point Cloud Visualizer") as demo:
|
|
| 272 |
if __name__ == "__main__":
|
| 273 |
# Launch with MCP server support for integration with other tools
|
| 274 |
# Can also set GRADIO_MCP_SERVER=True as environment variable
|
| 275 |
-
demo.launch(ssr_mode=False, mcp_server=True)
|
|
|
|
| 6 |
import os
|
| 7 |
import warnings
|
| 8 |
|
| 9 |
+
# Standard imports
|
|
|
|
| 10 |
import asyncio
|
|
|
|
| 11 |
|
| 12 |
def load_laz(file_path):
|
| 13 |
"""Load LAZ/LAS file and return all data."""
|
|
|
|
| 270 |
if __name__ == "__main__":
|
| 271 |
# Launch with MCP server support for integration with other tools
|
| 272 |
# Can also set GRADIO_MCP_SERVER=True as environment variable
|
| 273 |
+
demo.launch(ssr_mode=False, mcp_server=True)
|