Spaces:
Sleeping
Sleeping
marianna13
commited on
Commit
•
dcfdd52
1
Parent(s):
8f246c2
fix df model
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def response(num_responses, model, correct, prompt_ids):
|
|
65 |
# num_responses = len(responses)
|
66 |
|
67 |
# sample num_responses for each model
|
68 |
-
responses = responses.groupby('model').apply(lambda x: x.sample(num_responses) if num_responses < len(x) else x)
|
69 |
return responses[['model', 'prompt', 'model_response', 'correct']]
|
70 |
|
71 |
|
|
|
65 |
# num_responses = len(responses)
|
66 |
|
67 |
# sample num_responses for each model
|
68 |
+
responses = responses.groupby('model').apply(lambda x: x.sample(num_responses) if num_responses < len(x) else x)
|
69 |
return responses[['model', 'prompt', 'model_response', 'correct']]
|
70 |
|
71 |
|