Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -242,14 +242,14 @@ def main():
|
|
242 |
# Export the DataFrame to CSV
|
243 |
csv_data = df.to_csv(index=False)
|
244 |
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
|
254 |
# Add the new button in the second column
|
255 |
with button_row[1]:
|
|
|
242 |
# Export the DataFrame to CSV
|
243 |
csv_data = df.to_csv(index=False)
|
244 |
|
245 |
+
# Create a link to download the CSV file
|
246 |
+
st.download_button(
|
247 |
+
label="Download CSV",
|
248 |
+
data=csv_data,
|
249 |
+
file_name="leaderboard.csv",
|
250 |
+
key="download-csv",
|
251 |
+
help="Click to download the CSV file",
|
252 |
+
)
|
253 |
|
254 |
# Add the new button in the second column
|
255 |
with button_row[1]:
|