Huawei Tech4City Challenge - Team Predict Guardian Submission#11
Open
hanlim83 wants to merge 34 commits intoej-hw:mainfrom
Open
Huawei Tech4City Challenge - Team Predict Guardian Submission#11hanlim83 wants to merge 34 commits intoej-hw:mainfrom
hanlim83 wants to merge 34 commits intoej-hw:mainfrom
Conversation
* Initial AI Model Files * Initial AI Model Files * set up backend and gitignore * Add Model.pt * Update dependabot.yml * Restyled by autopep8 * Restyled by black * Restyled by pyment * Restyled by reorder-python-imports * Restyled by whitespace --------- Co-authored-by: Juay Kai Xun <juaykaixun@hotmail.com> Co-authored-by: Restyled.io <commits@restyled.io>
* Create Dockerfile * Restyled by whitespace --------- Co-authored-by: Restyled.io <commits@restyled.io>
* Initial AI Model Files * Initial AI Model Files * set up backend and gitignore * update backend * init db * Versioned Backend Dependencies * Add Images * fix backend for sql alchemy * initial backend integration * finalise backend * Restyled by autopep8 * Restyled by black * Restyled by isort * Restyled by pyment * Restyled by reorder-python-imports * Restyled by whitespace * Restyled by yapf --------- Co-authored-by: Lyney <30753183+hanlim83@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
* feat: Uploaded frontend template for uploading * Added logo --------- Co-authored-by: Syahmi <mdsyahmi@hotmail.com> Co-authored-by: Shinkeishi <ashleyytanjx@gmail.com>
Able to serve frontend and static images
* feat: Uploaded frontend template for uploading * Added logo * Added minor styling * Update index.html --------- Signed-off-by: Ashley Tan <ashleyytanjx@gmail.com> Co-authored-by: Syahmi <mdsyahmi@hotmail.com>
* Updated Dockerfile * Update Dockerfile * Updated javascript import * fix: Fix dockerfile and dependency imports --------- Co-authored-by: Shinkeishi <ashleyytanjx@gmail.com>
Signed-off-by: Lyney <30753183+hanlim83@users.noreply.github.com>
* Update Model Implmentation * Update app.py * Update app.py * Restyle Feat/ai model (#19) * Restyled by autopep8 * Restyled by black * Restyled by isort * Restyled by pyment * Restyled by reorder-python-imports * Restyled by whitespace * Restyled by yapf --------- Co-authored-by: Restyled.io <commits@restyled.io> --------- Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
Signed-off-by: Lyney <30753183+hanlim83@users.noreply.github.com>
PR summaryThis Pull Request introduces a full-stack AI web application developed by the Predict Guardian team for the Huawei Tech4City Challenge. The application detects the presence of flames or smoke in user-uploaded images using a customized YOLOv8 model. The backend is built with FastAPI, and the frontend uses Daisy UI and Tailwind CSS. The application can be run using Docker or locally, and it includes endpoints for uploading images and retrieving past results. Suggestion
Disclaimer: This comment was entirely generated using AI. Be aware that the information provided may be incorrect. Current plan usage: 41.45% Have feedback or need help? |
Signed-off-by: Lyney <30753183+hanlim83@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fire/Smoke Detection by team Predict Guardian
Our Code Submission is a full-stack AI web application that detects the presence of flames or smoke in the user's uploaded images.
How to run our application
Docker (Recomended)
docker run -d -p 8000:8000 --name predict-guardian hanlim82/huawei-tech4city:latestLocally
backenddirectorypython -m venv venvpip install -r .\requirements.txtuvicorn app:appNOTE: If you are running Debian/Ubuntu, before Step 4, please run this command
apt-get update && apt-get install ffmpeg libsm6 libxext6 -yHow can I access the UI/API?
You will be able to access the user interface and the API via localhost:8000
The API Documentation can be accessed via localhost:8000/docs
Technologies Used
Team Members
We are all year 3 students from SMU School of Computing and Information Systems