Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|