JKrishnanandhaa commited on
Commit
a035014
·
verified ·
1 Parent(s): 0e2dc37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -131,10 +131,11 @@ def create_detection_metrics_gauge(avg_confidence: float, iou: float, precision:
131
  rotation=90, # Start at 12 o'clock
132
  direction='clockwise', # Go clockwise
133
  gridcolor='rgba(128,128,128,0.2)',
134
- tickmode='linear',
135
- tick0=0,
136
- dtick=45, # Grid lines every 45 degrees
137
- showticklabels=False
 
138
  ),
139
  bgcolor='rgba(0,0,0,0)'
140
  ),
@@ -145,12 +146,13 @@ def create_detection_metrics_gauge(avg_confidence: float, iou: float, precision:
145
  y=0.5,
146
  xanchor="left",
147
  x=1.1,
148
- font=dict(size=12)
 
149
  ),
150
  paper_bgcolor='rgba(0,0,0,0)',
151
  plot_bgcolor='rgba(0,0,0,0)',
152
- height=400,
153
- margin=dict(l=40, r=150, t=40, b=40)
154
  )
155
 
156
  return fig
 
131
  rotation=90, # Start at 12 o'clock
132
  direction='clockwise', # Go clockwise
133
  gridcolor='rgba(128,128,128,0.2)',
134
+ tickmode='array',
135
+ tickvals=[0, 90, 180, 270],
136
+ ticktext=['0%', '25%', '50%', '75%'],
137
+ showticklabels=True,
138
+ tickfont=dict(size=12, color='#888')
139
  ),
140
  bgcolor='rgba(0,0,0,0)'
141
  ),
 
146
  y=0.5,
147
  xanchor="left",
148
  x=1.1,
149
+ font=dict(size=14, color='white'),
150
+ itemwidth=30
151
  ),
152
  paper_bgcolor='rgba(0,0,0,0)',
153
  plot_bgcolor='rgba(0,0,0,0)',
154
+ height=450,
155
+ margin=dict(l=60, r=180, t=40, b=40)
156
  )
157
 
158
  return fig