This PR adds a Flask API to the existing repository to process videos and calculate the tremor amplitude. It also includes a well-designed UI/UX website that runs the API.
Summary of Changes
Refactored the existing code in hand_tremor.py to work within a Flask API.
Created a new HTML template (upload.html) for the web interface.
Modified the CSS (style.css) and JavaScript (script.js) files to work with the new HTML template.
Added a new route in the Flask API to accept video files through a POST request and process them using the existing code.
Integrated the functionality of the main function in hand_tremor.py into the Flask route.
Updated the CSS to style the new HTML template.
Updated the JavaScript to handle the form submission and display the results.
Please review and merge this PR to add the Flask API and UI/UX website to the repository.
Fixes #2.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/flask-api
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds a Flask API to the existing repository to process videos and calculate the tremor amplitude. It also includes a well-designed UI/UX website that runs the API.
Summary of Changes
Please review and merge this PR to add the Flask API and UI/UX website to the repository.
Fixes #2.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.