File size: 924 Bytes
33c14bd |
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 26 27 28 29 30 31 32 33 34 35 36 37 38 |
#!/usr/bin/env python3
"""
Simple launcher script for the FinBERT Market Evaluation Streamlit app.
"""
import subprocess
import sys
import os
def main():
"""Launch the Streamlit application."""
print("🚀 Starting FinBERT Market Evaluation...")
print("=" * 50)
# Change to the correct directory
app_dir = os.path.dirname(os.path.abspath(__file__))
os.chdir(app_dir)
# Launch Streamlit
try:
cmd = [sys.executable, "-m", "streamlit", "run", "src/streamlit_app.py"]
print(f"Running: {' '.join(cmd)}")
print("=" * 50)
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"❌ Error launching Streamlit: {e}")
return 1
except KeyboardInterrupt:
print("\n👋 Application stopped by user")
return 0
return 0
if __name__ == "__main__":
sys.exit(main())
|