rodunia Claude commited on
Commit
67ada4b
·
1 Parent(s): 058eeea

feat: add Hugging Face deployment configuration

Browse files

- Add app.py entry point for HF Spaces
- Add .streamlit/config.toml for theme and server settings
- Add streamlit to requirements.txt
- Add .env.example for API key template

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (4) hide show
  1. .env.example +4 -10
  2. .streamlit/config.toml +12 -0
  3. app.py +14 -0
  4. requirements.txt +6 -28
.env.example CHANGED
@@ -1,11 +1,5 @@
1
  # LLM API Keys
2
- # Get your keys from:
3
- # OpenAI: https://platform.openai.com/api-keys
4
- # Google: https://makersuite.google.com/app/apikey
5
- # Anthropic: https://console.anthropic.com/settings/keys
6
- # Mistral: https://console.mistral.ai/api-keys
7
-
8
- OPENAI_API_KEY=your_openai_api_key_here
9
- GOOGLE_API_KEY=your_google_api_key_here
10
- ANTHROPIC_API_KEY=your_anthropic_api_key_here
11
- MISTRAL_API_KEY=your_mistral_api_key_here
 
1
  # LLM API Keys
2
+ OPENAI_API_KEY=your_openai_key_here
3
+ GOOGLE_API_KEY=your_google_key_here
4
+ ANTHROPIC_API_KEY=your_anthropic_key_here
5
+ MISTRAL_API_KEY=your_mistral_key_here
 
 
 
 
 
 
.streamlit/config.toml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [theme]
2
+ primaryColor="#FF6B6B"
3
+ backgroundColor="#FFFFFF"
4
+ secondaryBackgroundColor="#F0F2F6"
5
+ textColor="#262730"
6
+ font="sans serif"
7
+
8
+ [server]
9
+ headless = true
10
+ port = 7860
11
+ enableCORS = false
12
+ enableXsrfProtection = false
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ LLM Research App - Hugging Face Entry Point
3
+ Redirects to frontend/app.py for Streamlit deployment
4
+ """
5
+
6
+ import sys
7
+ from pathlib import Path
8
+
9
+ # Add project root to path
10
+ project_root = Path(__file__).parent
11
+ sys.path.insert(0, str(project_root))
12
+
13
+ # Import and run the frontend app
14
+ from frontend.app import *
requirements.txt CHANGED
@@ -1,31 +1,9 @@
1
- # Core
2
- python-dotenv
3
- pyyaml
4
- jinja2
5
- typer[all]
6
- rich
7
-
8
- # LLM Providers
9
  openai
10
  google-generativeai
11
- anthropic
12
  mistralai
13
-
14
- # Analysis & Data Science
15
- pydantic>=2.0
16
- pandas>=2.0.0
17
- numpy>=1.24.0
18
- scipy>=1.10.0
19
- statsmodels>=0.14.0
20
- scikit-learn>=1.3.0
21
- matplotlib>=3.7.0
22
-
23
- # Text Processing & Validation
24
- rapidfuzz>=3.0.0
25
- pint>=0.22
26
-
27
- # Scheduling
28
- APScheduler>=3.10.0
29
-
30
- # Testing
31
- pytest>=7.4.0
 
1
+ streamlit
2
+ anthropic
 
 
 
 
 
 
3
  openai
4
  google-generativeai
 
5
  mistralai
6
+ python-dotenv
7
+ pyyaml
8
+ rapidfuzz
9
+ pint