diahretnoutami commited on
Commit
ec8e0c8
Β·
2 Parent(s): 62d3e16 5345dd3

Resolve merge conflict in README.md and finalize project setup

Browse files
Files changed (2) hide show
  1. .gitattributes +34 -0
  2. README.md +18 -28
.gitattributes CHANGED
@@ -1,4 +1,38 @@
 
 
 
 
 
 
 
1
  *.h5 filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  *.png filter=lfs diff=lfs merge=lfs -text
3
  *.jpg filter=lfs diff=lfs merge=lfs -text
4
  *.jpeg filter=lfs diff=lfs merge=lfs -text
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
  *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  *.png filter=lfs diff=lfs merge=lfs -text
37
  *.jpg filter=lfs diff=lfs merge=lfs -text
38
  *.jpeg filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,21 +1,30 @@
 
 
 
 
 
 
 
 
 
1
  # 🐞 Insect Classifier - FastAPI
2
 
3
  A web-based insect classification app using two TensorFlow models (CNN and MobileNet), deployed with FastAPI. Users can upload insect images and receive predictions from both models, along with accuracy and descriptions.
4
 
5
  ## 🧠 Models
6
- - CNN model (`cnn_model.h5`)
7
- - MobileNet model (`mobilenet_model.h5`)
8
 
9
  ## βš™οΈ Tech Stack
10
- - FastAPI
11
  - TensorFlow & Keras
12
  - HTML/CSS (for frontend)
13
  - Uvicorn (as ASGI server)
14
  - Python
15
- - NumPy & Pandas
16
- - Matplotlib & Seaborn
17
- - Scikit-learn
18
-
19
 
20
  ## πŸ“¦ Dataset
21
 
@@ -29,8 +38,6 @@ This project uses the [Insects Recognition Dataset](https://www.kaggle.com/datas
29
 
30
  The dataset was used to train both the CNN and MobileNet models included in this project.
31
 
32
-
33
-
34
  ## πŸš€ How to Run Locally
35
 
36
  Make sure you have all dependencies installed and your virtual environment activated.
@@ -40,22 +47,5 @@ Open a terminal and run:
40
 
41
  ```bash
42
  venv\Scripts\activate
43
- uvicorn app.main:app --reload
44
- ```
45
-
46
- The backend will be running at:
47
- http://127.0.0.1:8000
48
-
49
- **Step 2: Start a local HTTP server (for the frontend)**
50
- in another terminal, terminal, activate your virtual environment and run:
51
-
52
- ```bash
53
- python -m http.server 8080
54
- ```
55
- This will serve your frontend.html at:
56
- http://127.0.0.1:8080/frontend.html
57
-
58
- Now the frontend can communicate with the FastAPI backend.
59
-
60
-
61
-
 
1
+ ---
2
+ title: CV InsectClassifier # Ini dari bagian remote, kamu bisa ubah namanya jadi lebih deskriptif kalau mau
3
+ emoji: 🐞 # Kamu bisa pilih emoji yang kamu suka, misal tetap 🐞
4
+ colorFrom: gray
5
+ colorTo: green
6
+ sdk: docker
7
+ pinned: false
8
+ ---
9
+
10
  # 🐞 Insect Classifier - FastAPI
11
 
12
  A web-based insect classification app using two TensorFlow models (CNN and MobileNet), deployed with FastAPI. Users can upload insect images and receive predictions from both models, along with accuracy and descriptions.
13
 
14
  ## 🧠 Models
15
+ - CNN model (`ProyekCV_model.h5`)
16
+ - MobileNet model (`ProyekCV_model_v2.h5`)
17
 
18
  ## βš™οΈ Tech Stack
19
+ - FastAPI
20
  - TensorFlow & Keras
21
  - HTML/CSS (for frontend)
22
  - Uvicorn (as ASGI server)
23
  - Python
24
+ - NumPy
25
+ # - Pandas # Kamu tidak pakai Pandas di main.py, sebaiknya dihapus dari daftar
26
+ # - Matplotlib & Seaborn # Kamu tidak pakai ini untuk runtime aplikasi, sebaiknya dihapus atau pindah ke "Development Dependencies"
27
+ # - Scikit-learn # Kamu tidak pakai ini, sebaiknya dihapus
28
 
29
  ## πŸ“¦ Dataset
30
 
 
38
 
39
  The dataset was used to train both the CNN and MobileNet models included in this project.
40
 
 
 
41
  ## πŸš€ How to Run Locally
42
 
43
  Make sure you have all dependencies installed and your virtual environment activated.
 
47
 
48
  ```bash
49
  venv\Scripts\activate
50
+ uvicorn main:app --reload --host 0.0.0.0 --port 8000 # <-- PERBAIKI INI: sesuaikan dengan command lokal mu
51
+ ```