File size: 695 Bytes
0a60d35 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import gradio as gr
import classifier
import home
import contact
# Define a Gradio interface
iface = gr.Interface(
fn=classifier.run, # Assuming classifier.run takes input and returns output
live=True,
capture_session=True,
show_input=False,
title="Vehicle Number Plate Recognition",
description="This page created by Himanshu Aggarwal",
)
# Add a button to navigate to Home
home_button = gr.Button("Home", click_fn=home.run)
iface.add_component(home_button, gr.Column(1))
# Add a button to navigate to Contact
contact_button = gr.Button("Contact", click_fn=contact.run)
iface.add_component(contact_button, gr.Column(1))
# Launch the Gradio interface
iface.launch()
|