chatfed_whisp / app.py
leavoigt's picture
Update app.py
edb4551 verified
raw
history blame contribute delete
603 Bytes
import gradio as gr
import json
from utils.main_processor import get_statistics
# Interface
with gr.Blocks() as ui:
with gr.Row():
file_input = gr.File(file_types=[".geojson"])
with gr.Row():
with gr.Column():
submit_btn = gr.Button("Submit")
with gr.Row():
output = gr.Dataframe()
# Submit button action
submit_btn.click(get_statistics,
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
)