mstts / app.py
tayyardurden's picture
Upload 75 files
d90493e verified
Raw History Blame Contribute Delete
688 Bytes
import os
from crypto_utils import decrypt_file
import streamlit as st
st.set_page_config(page_title="MS-TTS", page_icon="🤖", layout="wide")
# Adjust the path to the encrypted initializer file
enc_file_path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'enc_main_pages', 'enc_initializer.py'))
# Check if the file exists before attempting to decrypt it
if not os.path.exists(enc_file_path):
raise FileNotFoundError(f"The file {enc_file_path} does not exist. Please check the path and try again.")
# Decrypt and read the content of the encrypted initializer file
decrypted_content = decrypt_file(enc_file_path)
exec(decrypted_content)
app_starter()