ezamorag commited on
Commit
e914abf
·
1 Parent(s): 59478ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -58,8 +58,9 @@ def displaytext_detclasim(c_cnames, c_scinames, coverage):
58
  total = 0
59
  for (_,c) in countings_list:
60
  total += c
 
61
 
62
- text = f'coverage = {coverage}'+'\n\n'
63
  text += 'Countings by scientific name:\n'
64
  for key,value in countings_list:
65
  text += f'{key} = {value}'+'\n'
@@ -81,7 +82,7 @@ def displaytext_yolocounter(countings, coverage):
81
  for (y_class,c) in countings_list:
82
  total += c
83
 
84
- text = f'coverage = {coverage}'+'\n\n'
85
  for key,value in countings_list:
86
  text += f'{key} = {value}'+'\n'
87
  text += '\n'
 
58
  total = 0
59
  for (_,c) in countings_list:
60
  total += c
61
+
62
 
63
+ text = f'free space = {100-int(coverage.split('.')[0])}'+'\n\n'
64
  text += 'Countings by scientific name:\n'
65
  for key,value in countings_list:
66
  text += f'{key} = {value}'+'\n'
 
82
  for (y_class,c) in countings_list:
83
  total += c
84
 
85
+ text = f'free space = {100-int(coverage.split('.')[0])}'+'\n\n'
86
  for key,value in countings_list:
87
  text += f'{key} = {value}'+'\n'
88
  text += '\n'