NIELIT / app.py
HimanshuA's picture
Create app.py
0a60d35 verified
raw
history blame contribute delete
No virus
695 Bytes
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()