awacke1 commited on
Commit
4ed9d06
·
verified ·
1 Parent(s): 193042f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -126,6 +126,15 @@ class FastDatasetSearcher:
126
  combined_score = 0.0
127
 
128
  scores.append(combined_score)
 
 
 
 
 
 
 
 
 
129
 
130
  # Get top results
131
  results_df = df.copy()
 
126
  combined_score = 0.0
127
 
128
  scores.append(combined_score)
129
+
130
+ # Get top results
131
+ results_df = df.copy()
132
+ results_df['score'] = scores
133
+ return results_df.sort_values('score', ascending=False)
134
+
135
+ except Exception as e:
136
+ st.error(f"Search error: {str(e)}")
137
+ return df
138
 
139
  # Get top results
140
  results_df = df.copy()