CultriX commited on
Commit
3791315
·
verified ·
1 Parent(s): a989e5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- # Assuming you will display the configurations in some way in your app
178
- return configurations, matchescsv_data = df.to_csv(index=False)
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) # Assuming full_df is your DataFrame
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: