CultriX commited on
Commit
0e76f26
Β·
verified Β·
1 Parent(s): c52658c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -2
app.py CHANGED
@@ -117,9 +117,25 @@ def create_bar_chart(df, category):
117
 
118
  # Main function to run the Streamlit app
119
  def main():
120
- st.title("πŸ† YALL - Yet Another LLM Leaderboard")
121
- st.markdown("Leaderboard made with 🧐 [LLM AutoEval](https://github.com/mlabonne/llm-autoeval) using [Nous](https://huggingface.co/NousResearch) benchmark suite.")
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  # Create tabs for leaderboard and about section
124
  content = create_yall()
125
  tab1, tab2 = st.tabs(["πŸ† Leaderboard", "πŸ“ About"])
@@ -253,3 +269,4 @@ def main():
253
  # Run the main function if this script is run directly
254
  if __name__ == "__main__":
255
  main()
 
 
117
 
118
  # Main function to run the Streamlit app
119
  def main():
120
+ st.title("Model Leaderboard")
121
+ st.markdown("Displaying top combinations of models based on scores.")
122
 
123
+ # Placeholder for content fetching or upload
124
+ # For demonstration, let's assume 'content' is a markdown string from somewhere
125
+ content = """Your markdown table content here"""
126
+
127
+ if content:
128
+ df = convert_markdown_table_to_dataframe(content)
129
+ df = get_and_update_model_info(df)
130
+
131
+ # Assuming your DataFrame has these score columns already or you've added them
132
+ score_columns = ['Average', 'AGIEval', 'GPT4All', 'TruthfulQA', 'Bigbench']
133
+
134
+ # Make sure the score columns are numeric and handle NaNs or conversion issues
135
+ for col in score_columns:
136
+ df[col] = pd.to_numeric(df[col], errors='coerce')
137
+
138
+ display_highest_combined_scores(df, score_columns)
139
  # Create tabs for leaderboard and about section
140
  content = create_yall()
141
  tab1, tab2 = st.tabs(["πŸ† Leaderboard", "πŸ“ About"])
 
269
  # Run the main function if this script is run directly
270
  if __name__ == "__main__":
271
  main()
272
+