Skip to content

Commit

Permalink
updated backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kchiem12 committed Dec 3, 2023
1 parent c195a89 commit be0bb87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import sys
import os

from ..format import Format
# from ..format import Format



Expand Down
2 changes: 1 addition & 1 deletion src/processing/format.py
Original file line number Diff line number Diff line change
@@ -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:
"""
Expand Down
6 changes: 3 additions & 3 deletions src/view/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
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
st.session_state.upload_name = None
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):
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit be0bb87

Please sign in to comment.