File size: 556 Bytes
b479bc6 e907f95 b479bc6 e907f95 b479bc6 e907f95 b479bc6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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() |