tayyardurden/mstts
0
1import os
2from crypto_utils import decrypt_file
3import streamlit as st
4
5st.set_page_config(page_title="MS-TTS", page_icon="🤖", layout="wide")
6
7# Adjust the path to the encrypted initializer file
8enc_file_path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'enc_main_pages', 'enc_initializer.py'))
9
10# Check if the file exists before attempting to decrypt it
11if not os.path.exists(enc_file_path):
12 raise FileNotFoundError(f"The file {enc_file_path} does not exist. Please check the path and try again.")
13
14# Decrypt and read the content of the encrypted initializer file
15decrypted_content = decrypt_file(enc_file_path)
16exec(decrypted_content)
17
18app_starter()