myhs commited on
Commit
2d6b1ed
·
verified ·
1 Parent(s): 18faeea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -62,7 +62,7 @@ def make_results_tab(model_info, results):
62
  datasets_list.append(i)
63
 
64
  result_list = []
65
- index = 0
66
  for model in models_list:
67
  this_result = {}
68
  this_result['Index'] = index
@@ -76,6 +76,7 @@ def make_results_tab(model_info, results):
76
  return df
77
 
78
 
 
79
  def calculate_column_widths(df):
80
  column_widths = []
81
  for column in df.columns:
@@ -88,8 +89,6 @@ def calculate_column_widths(df):
88
 
89
 
90
 
91
-
92
-
93
  def show_results_tab(df):
94
 
95
 
@@ -102,6 +101,8 @@ def show_results_tab(df):
102
  newdf['TEMP'] = flag
103
  newdf = newdf[newdf['TEMP'] == True]
104
  newdf.pop('TEMP')
 
 
105
  return newdf
106
 
107
 
 
62
  datasets_list.append(i)
63
 
64
  result_list = []
65
+ index = 1
66
  for model in models_list:
67
  this_result = {}
68
  this_result['Index'] = index
 
76
  return df
77
 
78
 
79
+
80
  def calculate_column_widths(df):
81
  column_widths = []
82
  for column in df.columns:
 
89
 
90
 
91
 
 
 
92
  def show_results_tab(df):
93
 
94
 
 
101
  newdf['TEMP'] = flag
102
  newdf = newdf[newdf['TEMP'] == True]
103
  newdf.pop('TEMP')
104
+ for i in range(len(newdf)):
105
+ df.at[i, 'Index'] = i+1
106
  return newdf
107
 
108