Xinqi04 commited on
Commit
3e493e9
·
1 Parent(s): 7ec35cd
Dockerfile CHANGED
@@ -1,16 +1,12 @@
1
- FROM python:3.10
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Copy all files to the container
7
- COPY . .
8
-
9
- # Install dependencies
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
- # Expose port
 
13
  EXPOSE 7860
14
 
15
- # Start the API
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt .
 
 
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY . .
9
+
10
  EXPOSE 7860
11
 
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
saved_model/fingerprint.pb → best_model_tf.h5 RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:558560f2aa2edb8e7555f8b2e53bebd57dfb690a7b2c910afe2adc98d76c745e
3
- size 77
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6dd153498f1f6ec973e55039263a351ca434b2f39ea1955a80112fbc123dfea7
3
+ size 159448
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
  fastapi
2
  uvicorn
3
- tensorflow
4
  numpy
 
 
1
  fastapi
2
  uvicorn
3
+ tensorflow==2.15.0
4
  numpy
5
+ pydantic
saved_model/saved_model.pb DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:319d31ecf7b103e4e948b9453101341917c0e4a3c2907e2866e36b6962f0b6d4
3
- size 47790
 
 
 
 
saved_model/variables/variables.data-00000-of-00001 DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f5c965617075570a8dbc8345bac6bdc8166c0613cb61dff363282e096fcaaf42
3
- size 88172
 
 
 
 
saved_model/variables/variables.index DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:400ab56cad4af0002214f99f33ef4eed7fe60ae7fc9eaa865e709a13486f4c1b
3
- size 909