rwitz commited on
Commit
bb0fbc1
1 Parent(s): 89a5834

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -242,6 +242,8 @@ def generate_leaderboard(collection):
242
 
243
  def refresh_leaderboard():
244
  collection = init_database()
 
 
245
  async def direct_chat(model, user_input, state, chatbot, character_name, character_description, user_name):
246
  adapter = next(entry['adapter'] for entry in chatbots_data if entry['original_model'] == model)
247
 
 
242
 
243
  def refresh_leaderboard():
244
  collection = init_database()
245
+ leaderboard_data = generate_leaderboard(collection)
246
+ return leaderboard_data
247
  async def direct_chat(model, user_input, state, chatbot, character_name, character_description, user_name):
248
  adapter = next(entry['adapter'] for entry in chatbots_data if entry['original_model'] == model)
249