File size: 730 Bytes
03f0771 d7fb055 969bb18 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# This file is not needed for Hugging Face Spaces.
# Please set app_file: src/ui/streamlit_app.py in your Spaces configuration.
# The actual Streamlit UI logic is in src/ui/streamlit_app.py
#!/usr/bin/env python
# Script to run the Streamlit UI for AI Co-Scientist
import os
import sys
from pathlib import Path
# Add the project root to the Python path
project_root = Path(__file__).parent
sys.path.insert(0, str(project_root))
# Run the Streamlit app directly
import streamlit.web.cli as stcli
import click
if __name__ == "__main__":
print("Starting AI Co-Scientist UI...")
# Run the Streamlit app
sys.argv = ["streamlit", "run", str(project_root / "src" / "ui" / "streamlit_app.py")]
sys.exit(stcli.main())
|