TroglodyteDerivations commited on
Commit
457de51
·
verified ·
1 Parent(s): 640e062

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import streamlit as st
3
+
4
+
5
+ # Set page title and layout
6
+ st.set_page_config(page_title="Pokémon Classifier MoviePy Output", layout="wide")
7
+
8
+ # Title of the app
9
+ st.title("Pokémon Classifier MoviePy Output")
10
+
11
+ # Load and display the concatenated video
12
+ st.subheader("Prediction | LLM Output (Natural Language Stopping not implemented)")
13
+
14
+ # Define the filename of the concatenated video
15
+ video_filename = 'final_concatenated_output.mp4'
16
+
17
+ try:
18
+ with open(video_filename, 'rb') as f:
19
+ video_bytes = f.read()
20
+ st.video(video_bytes)
21
+ except FileNotFoundError:
22
+ st.warning(f"Archivo de video {video_filename} no encontrado.")