import streamlit as st import base64 # Set the page configuration st.set_page_config( page_title="MetaMorph AI", page_icon="🌉", initial_sidebar_state="expanded", layout="wide", menu_items={ 'Get help': 'https://www.linkedin.com/in/gaurav-verma-4696bb106/', 'About': "MetaMorph: Revolutionize your media with cutting-edge image and video augmentation using the META Sam-2 model for stunning visual transformations!" } ) # Function to load video as base64 def get_base64_video(video_path): with open(video_path, 'rb') as video_file: video_bytes = video_file.read() return base64.b64encode(video_bytes).decode('utf-8') # Video file path video_path = 'images/background.mp4' # Get the base64 video video_base64 = get_base64_video(video_path) # Add video as background background_video = f"""