From a670458f2261da3158e4a7ff295a961d712b45e8 Mon Sep 17 00:00:00 2001 From: Andrzej Preibisz Date: Sun, 29 Jan 2023 17:03:38 +0100 Subject: [PATCH] Streamlit WIP --- main.py | 7 ++++++- pred_test.py | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 74f6799..34b04d0 100644 --- a/main.py +++ b/main.py @@ -8,4 +8,9 @@ if __name__ == "__main__": ) st.title("Projekt rozpoznawanie liter z alfabetu znaków migowych z wideo") - st.write('Hello world') \ No newline at end of file + st.write('Załaduj film') + + upload_movie = st.file_uploader("Wybierz film", type=["mp4"]) + + if upload_movie: + st.write("Film się ładuje.....") diff --git a/pred_test.py b/pred_test.py index 8c5cc2b..a968c21 100644 --- a/pred_test.py +++ b/pred_test.py @@ -9,10 +9,10 @@ import numpy as np import tensorflow as tf -model = tf.keras.models.load_model('model_pred/VGG16_sign_char_detection_model') +model = tf.keras.models.load_model('VGG19_model.hdf5') # Get the list of all files and directories -path = "test_data_own" +path = "test_data_own_cropped" dir_list = os.listdir(path) print(dir_list)