The exercise.html file will need to be integrated with the Python handler used for step extraction. This handler will make an API call to a pre-trained model, extract the steps from the API response using regex, store them sequentially in a JSON object, and update the exercise_details[steps] field in the database.
Steps to implement:
Import the Python handler script in exercise.html.
Update the generateDropdownItems function to call the Python handler and pass the necessary data.
Update the HTML element where the extracted steps will be displayed.
Update the JavaScript code to populate the steps-container with the extracted steps.
Acceptance Criteria:
The exercise.html file successfully imports the Python handler script.
The generateDropdownItems function calls the Python handler and receives the JSON response.
The extracted steps are stored sequentially in a JSON object.
The steps-container in the HTML file displays the extracted steps correctly.
The exercise_details[steps] field in the database is updated with the JSON object.
The
exercise.html
file will need to be integrated with the Python handler used for step extraction. This handler will make an API call to a pre-trained model, extract the steps from the API response using regex, store them sequentially in a JSON object, and update theexercise_details[steps]
field in the database.Steps to implement:
Import the Python handler script in exercise.html. Update the generateDropdownItems function to call the Python handler and pass the necessary data. Update the HTML element where the extracted steps will be displayed. Update the JavaScript code to populate the steps-container with the extracted steps.
Acceptance Criteria:
The exercise.html file successfully imports the Python handler script. The generateDropdownItems function calls the Python handler and receives the JSON response. The extracted steps are stored sequentially in a JSON object. The steps-container in the HTML file displays the extracted steps correctly. The exercise_details[steps] field in the database is updated with the JSON object.