ece / app.py
Nathan Fradet
ruff formatting + changing gradio app loading
9c80799 unverified
raw
history blame
392 Bytes
"""Application file."""
import evaluate
import gradio as gr
"""module = evaluate.load("Natooz/ece")
gradio_app = gr.Interface(
module,
inputs=gr.component(),
outputs=[gr.Image(label="Processed Image"), gr.Label(label="Result", num_top_classes=2)],
title=module.name,
)"""
gradio_app = gr.load("Natooz/ece", src="spaces")
if __name__ == "__main__":
gradio_app.launch()