You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
Implement using the FastAPI functionalities and modifying a copy of the available classification API. No particular additional library is required.
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:
Subtasks
Plan for the implementation
Implement using the FastAPI functionalities and modifying a copy of the available classification API. No particular additional library is required.
Useful links:
The text was updated successfully, but these errors were encountered: