github-actions[bot] commited on
Commit
89c0f28
Β·
1 Parent(s): f4cc1de

πŸ›’ Automated Image Classifier deployment from GitHub Actions

Browse files
Files changed (2) hide show
  1. =0.1.4 +3 -3
  2. streamlit_app.py +3 -0
=0.1.4 CHANGED
@@ -33,15 +33,15 @@ Collecting sniffio>=1.1 (from anyio->httpx<1,>=0.23.0->huggingface-hub>=0.30)
33
  Requirement already satisfied: click>=8.0.0 in /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages (from typer-slim->huggingface-hub>=0.30) (8.3.1)
34
  Downloading huggingface_hub-1.1.4-py3-none-any.whl (515 kB)
35
  Downloading hf_xet-1.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
36
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 233.5 MB/s 0:00:00
37
  Downloading httpx-0.28.1-py3-none-any.whl (73 kB)
38
  Downloading httpcore-1.0.9-py3-none-any.whl (78 kB)
39
  Downloading hf_transfer-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
40
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 385.4 MB/s 0:00:00
41
  Downloading fsspec-2025.10.0-py3-none-any.whl (200 kB)
42
  Downloading h11-0.16.0-py3-none-any.whl (37 kB)
43
  Downloading pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (806 kB)
44
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 806.6/806.6 kB 518.9 MB/s 0:00:00
45
  Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)
46
  Downloading anyio-4.11.0-py3-none-any.whl (109 kB)
47
  Downloading sniffio-1.3.1-py3-none-any.whl (10 kB)
 
33
  Requirement already satisfied: click>=8.0.0 in /opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages (from typer-slim->huggingface-hub>=0.30) (8.3.1)
34
  Downloading huggingface_hub-1.1.4-py3-none-any.whl (515 kB)
35
  Downloading hf_xet-1.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
36
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 50.9 MB/s 0:00:00
37
  Downloading httpx-0.28.1-py3-none-any.whl (73 kB)
38
  Downloading httpcore-1.0.9-py3-none-any.whl (78 kB)
39
  Downloading hf_transfer-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
40
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 350.2 MB/s 0:00:00
41
  Downloading fsspec-2025.10.0-py3-none-any.whl (200 kB)
42
  Downloading h11-0.16.0-py3-none-any.whl (37 kB)
43
  Downloading pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (806 kB)
44
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 806.6/806.6 kB 18.7 MB/s 0:00:00
45
  Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)
46
  Downloading anyio-4.11.0-py3-none-any.whl (109 kB)
47
  Downloading sniffio-1.3.1-py3-none-any.whl (10 kB)
streamlit_app.py CHANGED
@@ -140,6 +140,9 @@ if uploaded_files:
140
  st.error("⚠️ Unable to read image.")
141
  st.stop()
142
 
 
 
 
143
  # --- Convert to RGB ---
144
  rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
145
 
 
140
  st.error("⚠️ Unable to read image.")
141
  st.stop()
142
 
143
+ # --- Scale image to 50% ---
144
+ frame = cv2.resize(frame, None, fx=0.5, fy=0.5, interpolation=cv2.INTER_AREA)
145
+
146
  # --- Convert to RGB ---
147
  rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
148