Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Flask API for Video Processing and UI/UX Website #6

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Aug 8, 2023

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

  • 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.

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
0 participants