syubraj's picture
Upload folder using huggingface_hub
3be49b0 verified
raw
history blame contribute delete
415 Bytes
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)