Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -174,8 +174,8 @@ def fetch_merge_configs(df):
|
|
174 |
except Exception as e:
|
175 |
print(f"Failed to load model card for {model_name}. Error: {e}")
|
176 |
|
177 |
-
|
178 |
-
return configurations,
|
179 |
|
180 |
# Main function to run the Streamlit app
|
181 |
def main():
|
@@ -279,8 +279,7 @@ def main():
|
|
279 |
)
|
280 |
if st.button("Fetch Merge-Configs"):
|
281 |
# Call the function with the current DataFrame
|
282 |
-
configurations, matches = fetch_merge_configs(full_df)
|
283 |
-
|
284 |
# You can then display the configurations or matches as needed, or write them to a file
|
285 |
# For example, displaying the configurations:
|
286 |
for config in configurations:
|
|
|
174 |
except Exception as e:
|
175 |
print(f"Failed to load model card for {model_name}. Error: {e}")
|
176 |
|
177 |
+
csv_data = df.to_csv(index=False)
|
178 |
+
return configurations, matches, csv_data
|
179 |
|
180 |
# Main function to run the Streamlit app
|
181 |
def main():
|
|
|
279 |
)
|
280 |
if st.button("Fetch Merge-Configs"):
|
281 |
# Call the function with the current DataFrame
|
282 |
+
configurations, matches, csv_data = fetch_merge_configs(full_df) # Assuming full_df is your DataFrame
|
|
|
283 |
# You can then display the configurations or matches as needed, or write them to a file
|
284 |
# For example, displaying the configurations:
|
285 |
for config in configurations:
|