Spaces:
Build error
Build error
Download app.py from tayyardurden/mstts: direct link, hf CLI and curl.
- Browser
- Download file 688 Bytes
-
https://huggingface.co/spaces/tayyardurden/mstts/resolve/main/app.py
- Command line
-
hf download hf://spaces/tayyardurden/mstts/app.py
-
curl -L -o app.py https://huggingface.co/spaces/tayyardurden/mstts/resolve/main/app.py
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() |