Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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='
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
showticklabels=
|
|
|
|
| 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=
|
|
|
|
| 149 |
),
|
| 150 |
paper_bgcolor='rgba(0,0,0,0)',
|
| 151 |
plot_bgcolor='rgba(0,0,0,0)',
|
| 152 |
-
height=
|
| 153 |
-
margin=dict(l=
|
| 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
|