HypePack / app.py
LeoWalker's picture
smol removal from app.py to make it as basic as possible.
b17c126
raw
history blame contribute delete
556 Bytes
import os
import sys
import streamlit as st
# Add the package directory to Python path
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
# Import and run the Streamlit app
from hype_pack.streamlit_app import main
# Remove the duplicate page config from streamlit_app.py
if __name__ == "__main__":
# Enable CORS for audio streaming
headers = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type"
}
main()