From 93f274ef39b37b67dbc3a8e9a6524d3d2ee797cc Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sat, 27 Jul 2024 15:37:29 -0400 Subject: [PATCH] modified: app.py --- app.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app.py b/app.py index e3449ac..6c637e3 100644 --- a/app.py +++ b/app.py @@ -1816,9 +1816,6 @@ def handle_activity_response(room_name, user_response, username): category == "correct" or activity_state.attempts >= activity_state.max_attempts ): - print( - f"Transitioning to next step. Category: {category}, Attempts: {activity_state.attempts}" - ) # Move to the next step or section next_section, next_step = get_next_step( activity_content, section["section_id"], step["step_id"] @@ -1972,6 +1969,7 @@ def display_activity_info(room_name, username): - Engagement: Is the response engaging and interesting? Provide a score out of 10 for each criterion and an overall grade for each user. Finally order each user by who is winning. Number of correct answers and accuracy & include an enumeration of the feats! + Take into account how many attempts the user took to get a passing answer when ranking. """, ) @@ -2053,12 +2051,6 @@ def get_next_step(activity_content, current_section_id, current_step_id): return None, None -# Load the YAML activity file -def load_yaml_activity(file_path): - with open(file_path, "r") as file: - return yaml.safe_load(file) - - # Categorize the user's response using gpt-4o-mini def categorize_response(question, response, buckets, tokens_for_ai): openai_client = OpenAI()