SaritMeshesha commited on
Commit
6bcc4cb
Β·
verified Β·
1 Parent(s): b2706cf

fix readme

Browse files
Files changed (1) hide show
  1. README.md +26 -4
README.md CHANGED
@@ -1,3 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
  # πŸ€– LangGraph Data Analyst Agent
2
 
3
  An intelligent data analyst agent built with LangGraph that analyzes customer support conversations with advanced memory, conversation persistence, and query recommendations.
@@ -41,6 +53,7 @@ User Query β†’ Classifier β†’ [Structured Agent | Unstructured Agent | Recommend
41
  ### Prerequisites
42
  - **Python Version**: 3.9 or higher
43
  - **API Key**: OpenAI API key or Nebius API key
 
44
 
45
  ### Installation
46
 
@@ -68,7 +81,7 @@ NEBIUS_API_KEY=your_nebius_api_key_here
68
 
69
  4. **Run the application**:
70
  ```bash
71
- streamlit run app_langgraph.py
72
  ```
73
 
74
  5. **Access the app**:
@@ -76,7 +89,16 @@ Open your browser to `http://localhost:8501`
76
 
77
  ### Alternative Deployment
78
 
79
- For cloud deployment, set the environment variable:
 
 
 
 
 
 
 
 
 
80
  ```bash
81
  export OPENAI_API_KEY=your_api_key_here
82
  # OR
@@ -203,10 +225,10 @@ Agents/
203
  β”œβ”€β”€ README.md # This file
204
  β”œβ”€β”€ requirements.txt # Python dependencies
205
  β”œβ”€β”€ .env # API keys (create this)
206
- β”œβ”€β”€ app_langgraph.py # New LangGraph Streamlit app
207
  β”œβ”€β”€ langgraph_agent.py # LangGraph agent implementation
208
- β”œβ”€β”€ app.py # Original app (for reference)
209
  β”œβ”€β”€ agent-memory.ipynb # Memory example notebook
 
210
  └── DEPLOYMENT_GUIDE.md # Original deployment guide
211
  ```
212
 
 
1
+ ---
2
+ title: LangGraph Data Analyst Agent
3
+ emoji: πŸ€–
4
+ colorFrom: blue
5
+ colorTo: purple
6
+ sdk: streamlit
7
+ sdk_version: "1.28.0"
8
+ app_file: app.py
9
+ pinned: false
10
+ license: mit
11
+ ---
12
+
13
  # πŸ€– LangGraph Data Analyst Agent
14
 
15
  An intelligent data analyst agent built with LangGraph that analyzes customer support conversations with advanced memory, conversation persistence, and query recommendations.
 
53
  ### Prerequisites
54
  - **Python Version**: 3.9 or higher
55
  - **API Key**: OpenAI API key or Nebius API key
56
+ - **For Hugging Face Spaces**: Ensure your API key is set as a Space secret
57
 
58
  ### Installation
59
 
 
81
 
82
  4. **Run the application**:
83
  ```bash
84
+ streamlit run app.py
85
  ```
86
 
87
  5. **Access the app**:
 
89
 
90
  ### Alternative Deployment
91
 
92
+ #### For Hugging Face Spaces:
93
+ 1. **Fork or upload this repository to Hugging Face Spaces**
94
+ 2. **Set your API key as a Space secret:**
95
+ - Go to your Space settings
96
+ - Navigate to "Variables and secrets"
97
+ - Add a secret named `NEBIUS_API_KEY` or `OPENAI_API_KEY`
98
+ - Enter your API key as the value
99
+ 3. **The app will start automatically**
100
+
101
+ #### For other cloud deployment:
102
  ```bash
103
  export OPENAI_API_KEY=your_api_key_here
104
  # OR
 
225
  β”œβ”€β”€ README.md # This file
226
  β”œβ”€β”€ requirements.txt # Python dependencies
227
  β”œβ”€β”€ .env # API keys (create this)
228
+ β”œβ”€β”€ app.py # LangGraph Streamlit app
229
  β”œβ”€β”€ langgraph_agent.py # LangGraph agent implementation
 
230
  β”œβ”€β”€ agent-memory.ipynb # Memory example notebook
231
+ β”œβ”€β”€ test_agent.py # Test suite
232
  └── DEPLOYMENT_GUIDE.md # Original deployment guide
233
  ```
234