nishantgaurav23 commited on
Commit
06506f4
·
verified ·
1 Parent(s): 15af2ef

Upload setup.py

Browse files
Files changed (1) hide show
  1. setup.py +69 -0
setup.py ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+
4
+ def create_project_structure():
5
+ """Create the project directory structure and files"""
6
+
7
+ # Create directories
8
+ directories = [
9
+ 'ESPN_data',
10
+ 'embeddings_cache'
11
+ ]
12
+
13
+ for directory in directories:
14
+ os.makedirs(directory, exist_ok=True)
15
+ print(f"Created directory: {directory}")
16
+
17
+ # Create .env file if it doesn't exist
18
+ if not os.path.exists('.env'):
19
+ with open('.env', 'w') as f:
20
+ f.write("HUGGINGFACE_API_KEY=your_api_key_here\n")
21
+ print("Created .env file")
22
+
23
+ # Create .gitignore if it doesn't exist
24
+ if not os.path.exists('.gitignore'):
25
+ gitignore_content = """
26
+ # Environment variables
27
+ .env
28
+
29
+ # Python
30
+ __pycache__/
31
+ *.py[cod]
32
+ *$py.class
33
+
34
+ # Distribution / packaging
35
+ dist/
36
+ build/
37
+ *.egg-info/
38
+
39
+ # Virtual Environment
40
+ venv/
41
+ env/
42
+ ENV/
43
+
44
+ # Cache directories
45
+ embeddings_cache/
46
+ .cache/
47
+
48
+ # IDE specific files
49
+ .vscode/
50
+ .idea/
51
+
52
+ # Operating System
53
+ .DS_Store
54
+ Thumbs.db
55
+ """
56
+ with open('.gitignore', 'w') as f:
57
+ f.write(gitignore_content.strip())
58
+ print("Created .gitignore file")
59
+
60
+ print("\nProject structure created successfully!")
61
+ print("\nNext steps:")
62
+ print("1. Add your HuggingFace API key to the .env file")
63
+ print("2. Place your ESPN data CSV files in the ESPN_data directory")
64
+ print("3. Install requirements: pip install -r requirements.txt")
65
+ print("4. Run embedding generation: python embedding_processor.py")
66
+ print("5. Start the app: streamlit run app.py")
67
+
68
+ if __name__ == "__main__":
69
+ create_project_structure()