Spaces:
Build error
Build error
File size: 688 Bytes
d90493e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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() |