import gradio as gr import json from utils.utils import process_geojson # Interface with gr.Blocks() as ui: with gr.Row(): with gr.Column(): file_input = gr.File(file_types=[".geojson"]) submit_btn = gr.Button("Submit") with gr.Column(): output = gr.JSON() submit_btn.click(process_geojson, file_input, output) # Launch app if __name__ == "__main__": ui.launch( server_name="0.0.0.0", server_port=7860, #mcp_server=True, show_error=True )