Sarvamangalak commited on
Commit
eb6df12
·
verified ·
1 Parent(s): 0318618

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -64,12 +64,12 @@ def get_dashboard():
64
 
65
  if len(df) == 0:
66
  ax.text(0.5, 0.5, "No vehicles scanned yet",
67
- ha="center", va="center", fontsize=12)
68
  ax.axis("off")
69
  return fig
70
 
71
  counts = df["type"].value_counts()
72
- counts.plot(kind="bar", ax=ax)
73
 
74
  ax.set_title("Vehicle Classification Dashboard")
75
  ax.set_xlabel("Vehicle Type")
@@ -124,7 +124,7 @@ textarea {
124
  """
125
 
126
  with gr.Blocks() as demo:
127
- gr.Markdown("## 🚦 Smart Traffic & EV Analytics System")
128
  gr.Markdown(
129
  "Detects license plates, reads number plate text, "
130
  "classifies EV / Commercial / Personal vehicles, "
 
64
 
65
  if len(df) == 0:
66
  ax.text(0.5, 0.5, "No vehicles scanned yet",
67
+ ha="center", va="center", fontsize=10)
68
  ax.axis("off")
69
  return fig
70
 
71
  counts = df["type"].value_counts()
72
+ counts.plot(kind="pie", ax=ax)
73
 
74
  ax.set_title("Vehicle Classification Dashboard")
75
  ax.set_xlabel("Vehicle Type")
 
124
  """
125
 
126
  with gr.Blocks() as demo:
127
+ gr.Markdown("## Smart Traffic & EV Analytics System")
128
  gr.Markdown(
129
  "Detects license plates, reads number plate text, "
130
  "classifies EV / Commercial / Personal vehicles, "