Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,8 @@ def displaytext_yolocounter(countings, coverage):
|
|
51 |
for (y_class,c) in countings_list:
|
52 |
total += c
|
53 |
|
54 |
-
|
|
|
55 |
for key,value in countings_list:
|
56 |
text += f'{key} = {value}'+'\n'
|
57 |
text += '\n'
|
|
|
51 |
for (y_class,c) in countings_list:
|
52 |
total += c
|
53 |
|
54 |
+
free = 100-int(coverage.split('.')[0])
|
55 |
+
text = f'free space = {free}%'+'\n\n'
|
56 |
for key,value in countings_list:
|
57 |
text += f'{key} = {value}'+'\n'
|
58 |
text += '\n'
|