Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -284,9 +284,16 @@ def main():
|
|
284 |
# For example, displaying the configurations:
|
285 |
for config in configurations:
|
286 |
st.text(f"Model Name: {config['Model Name']}\nScores: {config['Scores']}\nAGIEval: {config['AGIEval']}\nGPT4All: {config['GPT4All']}\nTruthfulQA: {config['TruthfulQA']}\nBigbench: {config['Bigbench']}\nModel Card: {config['Model Card']}\n\n")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
st.download_button(
|
288 |
label="Download Configurations",
|
289 |
-
data=
|
290 |
file_name="configurations.csv",
|
291 |
key="download-csv",
|
292 |
help="Click to download the CSV file",
|
|
|
284 |
# For example, displaying the configurations:
|
285 |
for config in configurations:
|
286 |
st.text(f"Model Name: {config['Model Name']}\nScores: {config['Scores']}\nAGIEval: {config['AGIEval']}\nGPT4All: {config['GPT4All']}\nTruthfulQA: {config['TruthfulQA']}\nBigbench: {config['Bigbench']}\nModel Card: {config['Model Card']}\n\n")
|
287 |
+
|
288 |
+
# Convert the list of dictionaries to a DataFrame
|
289 |
+
configurations_df = pd.DataFrame(configurations)
|
290 |
+
|
291 |
+
# Convert the DataFrame to a CSV string
|
292 |
+
configurations_csv = configurations_df.to_csv(index=False)
|
293 |
+
|
294 |
st.download_button(
|
295 |
label="Download Configurations",
|
296 |
+
data=configurations_csv,
|
297 |
file_name="configurations.csv",
|
298 |
key="download-csv",
|
299 |
help="Click to download the CSV file",
|