Jerry75AI commited on
Commit
802c1db
·
verified ·
1 Parent(s): 5fea29a

Upload 4 files

Browse files
Files changed (3) hide show
  1. Dockerfile +25 -0
  2. README.md +6 -11
  3. app.py +1 -1
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM tensorflow/tensorflow:2.16.1-jupyter
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ build-essential gfortran libblas-dev liblapack-dev \
8
+ libffi-dev libssl-dev libbz2-dev liblzma-dev zlib1g-dev \
9
+ libncurses5-dev libncursesw5-dev libreadline-dev curl git \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy requirements first for caching
13
+ COPY requirements.txt .
14
+
15
+ # Upgrade pip and install all dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy app source
19
+ COPY . .
20
+
21
+ # Expose Flask port
22
+ EXPOSE 7860
23
+
24
+ # Run Flask API
25
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -1,14 +1,9 @@
1
  ---
2
- title: Classification Garbage
3
- emoji: 📚
4
- colorFrom: gray
5
- colorTo: yellow
6
- sdk: gradio
7
- sdk_version: 5.48.0
8
- app_file: app.py
9
  pinned: false
 
10
  ---
11
-
12
- # HF Model: Classification
13
-
14
- This folder contains files to load a Keras (.keras) image classification model on Hugging Face Inference.
 
1
  ---
2
+ title: gcai
3
+ emoji: 🌍
4
+ colorFrom: yellow
5
+ colorTo: indigo
6
+ sdk: docker
 
 
7
  pinned: false
8
+ license: mit
9
  ---
 
 
 
 
app.py CHANGED
@@ -110,4 +110,4 @@ async def home():
110
  return "POST /predict"
111
 
112
  if __name__ == "__main__":
113
- app.run(host="0.0.0.0", port=8000)
 
110
  return "POST /predict"
111
 
112
  if __name__ == "__main__":
113
+ app.run(host="0.0.0.0", port=7860)