diff --git a/src/api/backend.py b/src/api/backend.py index f4c2ca54..f43c5c61 100644 --- a/src/api/backend.py +++ b/src/api/backend.py @@ -15,7 +15,7 @@ import sys import os -from ..format import Format +# from ..format import Format diff --git a/src/processing/format.py b/src/processing/format.py index 16703b18..f22bc2cf 100644 --- a/src/processing/format.py +++ b/src/processing/format.py @@ -1,5 +1,5 @@ # results_formatter.py -from ..state import GameState # Adjust the import according to your project structure +from state import GameState # Adjust the import according to your project structure def results(game_state: GameState) -> str: """ diff --git a/src/view/app.py b/src/view/app.py index fb583749..0c59d106 100644 --- a/src/view/app.py +++ b/src/view/app.py @@ -22,7 +22,7 @@ if "state" not in st.session_state: st.session_state.state = 0 st.session_state.logo = "src/view/static/basketball.png" - with open("data/training_data.mp4", "rb") as file: + with open("data/short_new_1.mp4", "rb") as file: st.session_state.video_file = io.BytesIO(file.read()) st.session_state.processed_video = None st.session_state.result_string = None @@ -30,7 +30,7 @@ st.session_state.user_file = "tmp/user_upload.mp4" # Backend Connection -SERVER_URL = "http://35.171.133.54:8000/" +SERVER_URL = "http://127.0.0.1:8000/" def process_video(video_file): @@ -436,7 +436,7 @@ def process_results(): elif st.session_state.state == 1: loading_page() elif st.session_state.state == 2: - results_page(get_res()) + results_page() else: error_page()