RickyGuoTheCrazish
update finbert_market_evaluation
33c14bd
#!/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())