File size: 415 Bytes
3be49b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

from main import process_and_generate_heatmap

if __name__ == "__main__":
    iface = gr.Interface(
        fn=process_and_generate_heatmap,
        inputs=gr.Image(type="pil"),
        outputs=gr.File(label="Heatmap Image"),
        title="Heatmap Generator",
        description="Upload an image to generate a high-resolution heatmap."
    )

    # Launch the app
    iface.launch(share=True)