-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_demo.py
More file actions
85 lines (74 loc) · 2.31 KB
/
Copy pathsetup_demo.py
File metadata and controls
85 lines (74 loc) · 2.31 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env python3
"""
Quick setup script for hackathon demo
"""
import os
import sys
from dotenv import load_dotenv
def check_requirements():
"""Check if all requirements are met"""
print("🔍 CHECKING DEMO REQUIREMENTS...")
print("=" * 50)
# Check .env file
if os.path.exists('.env'):
print("✅ .env file found")
else:
print("❌ .env file not found")
return False
# Load environment variables
load_dotenv()
# Check API key
api_key = os.getenv("GOOGLE_API_KEY")
if api_key:
print("✅ Google API key found")
print(f" Key starts with: {api_key[:10]}...")
else:
print("❌ Google API key not found in .env file")
return False
# Check required packages
try:
import google.generativeai
print("✅ google-generativeai package installed")
except ImportError:
print("❌ google-generativeai package not installed")
print(" Run: pip3 install google-generativeai")
return False
try:
import dotenv
print("✅ python-dotenv package installed")
except ImportError:
print("❌ python-dotenv package not installed")
print(" Run: pip3 install python-dotenv")
return False
print("\n🎉 ALL REQUIREMENTS MET!")
print(" Your demo is ready to run!")
return True
def show_demo_commands():
"""Show available demo commands"""
print("\n🚀 AVAILABLE DEMO COMMANDS:")
print("=" * 50)
print("1. Enhanced Hackathon Demo:")
print(" python3 hackathon_demo_enhanced.py")
print()
print("2. Original Google AI Demo:")
print(" python3 demo_google_ai.py")
print()
print("3. Quick Demo (if you have Streamlit):")
print(" python3 quick_demo.py")
print()
print("4. Test Google AI Connection:")
print(" python3 test_gemini.py")
print()
def main():
"""Main setup function"""
print("🎯 HACKATHON DEMO SETUP")
print("=" * 50)
if check_requirements():
show_demo_commands()
print("🏆 READY FOR HACKATHON!")
print(" Run the enhanced demo to impress the judges!")
else:
print("\n❌ SETUP INCOMPLETE")
print(" Please fix the issues above before running the demo")
if __name__ == "__main__":
main()