xcurvnubaim commited on
Commit
6bdfa78
·
1 Parent(s): 1b675b4

fix: fix deployment

Browse files
Files changed (4) hide show
  1. Dockerfile +2 -2
  2. labels.txt +90 -0
  3. app.py → main.py +0 -0
  4. requirements.txt +1 -0
Dockerfile CHANGED
@@ -7,10 +7,10 @@ WORKDIR /code
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
- COPY ./app.py /code/
11
 
12
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
14
  COPY . .
15
 
16
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
+ RUN curl -o models.h5 "https://drive.usercontent.google.com/download?id=1T5HGnk9Mxlb5G6FTxp26BWSrTpzbjtP2&export=download&authuser=0"
11
 
12
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
14
  COPY . .
15
 
16
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
labels.txt ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ antelope
2
+ badger
3
+ bat
4
+ bear
5
+ bee
6
+ beetle
7
+ bison
8
+ boar
9
+ butterfly
10
+ cat
11
+ caterpillar
12
+ chimpanzee
13
+ cockroach
14
+ cow
15
+ coyote
16
+ crab
17
+ crow
18
+ deer
19
+ dog
20
+ dolphin
21
+ donkey
22
+ dragonfly
23
+ duck
24
+ eagle
25
+ elephant
26
+ flamingo
27
+ fly
28
+ fox
29
+ goat
30
+ goldfish
31
+ goose
32
+ gorilla
33
+ grasshopper
34
+ hamster
35
+ hare
36
+ hedgehog
37
+ hippopotamus
38
+ hornbill
39
+ horse
40
+ hummingbird
41
+ hyena
42
+ jellyfish
43
+ kangaroo
44
+ koala
45
+ ladybugs
46
+ leopard
47
+ lion
48
+ lizard
49
+ lobster
50
+ mosquito
51
+ moth
52
+ mouse
53
+ octopus
54
+ okapi
55
+ orangutan
56
+ otter
57
+ owl
58
+ ox
59
+ oyster
60
+ panda
61
+ parrot
62
+ pelecaniformes
63
+ penguin
64
+ pig
65
+ pigeon
66
+ porcupine
67
+ possum
68
+ raccoon
69
+ rat
70
+ reindeer
71
+ rhinoceros
72
+ sandpiper
73
+ seahorse
74
+ seal
75
+ shark
76
+ sheep
77
+ snake
78
+ sparrow
79
+ squid
80
+ squirrel
81
+ starfish
82
+ swan
83
+ tiger
84
+ turkey
85
+ turtle
86
+ whale
87
+ wolf
88
+ wombat
89
+ woodpecker
90
+ zebra
app.py → main.py RENAMED
File without changes
requirements.txt CHANGED
@@ -6,6 +6,7 @@ tensorflow-io-gcs-filesystem==0.36.0
6
  tensorflow-metadata==1.15.0
7
  tensorflow-probability==0.23.0
8
  fastapi
 
9
  numpy==1.25.2
10
  Pillow==9.4.0
11
  keras==2.15.0
 
6
  tensorflow-metadata==1.15.0
7
  tensorflow-probability==0.23.0
8
  fastapi
9
+ uvicorn
10
  numpy==1.25.2
11
  Pillow==9.4.0
12
  keras==2.15.0