Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ import streamlit as st
|
|
2 |
# from transformers import pipeline
|
3 |
from deepface import DeepFace
|
4 |
import numpy as np
|
5 |
-
|
|
|
6 |
|
7 |
# pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
8 |
|
@@ -16,8 +17,8 @@ if file_name is not None:
|
|
16 |
# make two columns
|
17 |
col1, col2 = st.columns(2)
|
18 |
|
19 |
-
# capture image
|
20 |
-
image =
|
21 |
|
22 |
# display image in left column
|
23 |
col1.image(image, use_column_width=True)
|
|
|
2 |
# from transformers import pipeline
|
3 |
from deepface import DeepFace
|
4 |
import numpy as np
|
5 |
+
# import custom helper functions
|
6 |
+
from backend import check_image_rotation
|
7 |
|
8 |
# pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
9 |
|
|
|
17 |
# make two columns
|
18 |
col1, col2 = st.columns(2)
|
19 |
|
20 |
+
# capture image with intended rotation
|
21 |
+
image = check_image_rotation(file_name)
|
22 |
|
23 |
# display image in left column
|
24 |
col1.image(image, use_column_width=True)
|