Spaces:
Runtime error
Runtime error
import streamlit as st | |
from model_processing import * | |
from video_input import video_input | |
st.set_page_config( | |
page_title=r"Analysis TikTok", | |
page_icon=":dizzy:", | |
layout="wide" | |
) | |
model = TikTokAnalytics() | |
video_path, video_container, message_container = video_input() | |
st.session_state['video_path'] = video_path | |
if 'video_path' in st.session_state: | |
with st.spinner('Wait. We analyze your video'): | |
final_metric = [0, 0.1] # model(video_path)[0] | |
message_container.write(final_metric) | |
message_container.write( | |
'People will like your video' if final_metric[1] > final_metric[0] else "People won't like your video" | |
) | |