Spaces:
Running
Running
Commit
·
bf350d1
1
Parent(s):
92b0346
Update app.py
Browse files
app.py
CHANGED
|
@@ -140,11 +140,11 @@ st.markdown(
|
|
| 140 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 141 |
|
| 142 |
# Load the data
|
| 143 |
-
data_path = "
|
| 144 |
df = pd.read_csv(data_path)
|
| 145 |
|
| 146 |
# Assign ranks within each tier based on factuality_score
|
| 147 |
-
df['rank'] = df.groupby('tier')['
|
| 148 |
ascending=False, method='min').astype(int)
|
| 149 |
|
| 150 |
# Replace NaN values with '-'
|
|
|
|
| 140 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 141 |
|
| 142 |
# Load the data
|
| 143 |
+
data_path = "verifact_data.csv"
|
| 144 |
df = pd.read_csv(data_path)
|
| 145 |
|
| 146 |
# Assign ranks within each tier based on factuality_score
|
| 147 |
+
df['rank'] = df.groupby('tier')['Overall'].rank(
|
| 148 |
ascending=False, method='min').astype(int)
|
| 149 |
|
| 150 |
# Replace NaN values with '-'
|