Final
Browse files- FastAPI.py +2 -1
FastAPI.py
CHANGED
@@ -24,7 +24,6 @@ firebase = pyrebase.initialize_app(config)
|
|
24 |
storage = firebase.storage()
|
25 |
|
26 |
|
27 |
-
storage.child().download("Faces/pkl/face_encodings.pkl","face_encodings.pkl")
|
28 |
|
29 |
|
30 |
app = FastAPI()
|
@@ -36,6 +35,8 @@ class ImgOutput(BaseModel):
|
|
36 |
label: str
|
37 |
|
38 |
def recognize_face(image_url: HttpUrl) -> ImgOutput:
|
|
|
|
|
39 |
# Downloading image
|
40 |
response = requests.get(image_url)
|
41 |
with open("examp.jpg", 'wb') as file:
|
|
|
24 |
storage = firebase.storage()
|
25 |
|
26 |
|
|
|
27 |
|
28 |
|
29 |
app = FastAPI()
|
|
|
35 |
label: str
|
36 |
|
37 |
def recognize_face(image_url: HttpUrl) -> ImgOutput:
|
38 |
+
|
39 |
+
storage.child().download("Faces/pkl/face_encodings.pkl","face_encodings.pkl")
|
40 |
# Downloading image
|
41 |
response = requests.get(image_url)
|
42 |
with open("examp.jpg", 'wb') as file:
|