Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|