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

Upload image button #4

Open
asotgiu opened this issue Dec 3, 2024 · 0 comments
Open

Upload image button #4

asotgiu opened this issue Dec 3, 2024 · 0 comments

Comments

@asotgiu
Copy link
Contributor

asotgiu commented Dec 3, 2024

Summary of the request

Add the “upload image” functionality. Implement a new route that, instead of showing the dropdown list of images to select, allows the user to select an image from the computer and returns the classification results.
The button should allow the user to upload a custom image and classify it. The image should be displayed in the output interface along with the classification scores.
The old functionalities should be preserved. This is an additional feature.
Difficulty:
image

Subtasks

  • Copy the route and HTML file of the classification API.
  • Add the new route to the routes init file.
  • Add the "upload" button in the frontend (HTML).
  • Implement the API to store the image.
  • Pass the image to the classification API.

Plan for the implementation

image

Implement using the FastAPI functionalities and modifying a copy of the available classification API. No particular additional library is required.

Useful links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant