File size: 340 Bytes
1424103 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
from src.classify.classify import classify_logo
if __name__ == "__main__":
# Create the Gradio interface
iface = gr.Interface(
fn=classify_logo,
inputs=[gr.Image(type="filepath")],
outputs=gr.Textbox(label="Predicted class")
)
# Launch the interface
iface.launch(share=True) |