-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_app.py
More file actions
29 lines (26 loc) · 835 Bytes
/
run_app.py
File metadata and controls
29 lines (26 loc) · 835 Bytes
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
#!/usr/bin/env python3
"""
Launcher script for the Travel Booking Streamlit App
"""
import subprocess
import sys
import os
def main():
print("🚀 Starting Travel Booking Assistant...")
print("📱 Opening Streamlit app at http://localhost:8501")
print("⏹️ To stop the app, press Ctrl+C")
print("-" * 50)
try:
# Run streamlit
subprocess.run([
sys.executable, "-m", "streamlit", "run", "streamlit_app.py",
"--server.port", "8501",
"--server.headless", "false"
])
except KeyboardInterrupt:
print("\n👋 Thanks for using Travel Booking Assistant!")
except Exception as e:
print(f"❌ Error starting app: {e}")
print("Make sure streamlit is installed: pip install streamlit")
if __name__ == "__main__":
main()