VladBastina commited on
Commit
5602532
·
unverified ·
1 Parent(s): e601c67

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -0
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Sales agent for Zega Ai
2
+ This project is a chatbot that answers questions based on a brochure of different projects that can be made by us
3
+
4
+ ## Requirements
5
+ Python 3.12
6
+
7
+ ## How to setup
8
+
9
+ 1. **Create environment and install dependencies**
10
+ ```bash
11
+ conda create -n sales python=3.12
12
+ conda activate sales
13
+ pip install -r requirements.txt
14
+ ```
15
+
16
+ 2. **Setup secrets for streamlit**
17
+
18
+ Create a new file in the .streamlit folder named secrets.toml and put there your GOOGLE_API_KEY in the following format
19
+
20
+ ```bash
21
+ GOOGLE_API_KEY = 'your_key_here'
22
+ ```
23
+
24
+ ## How to run
25
+
26
+ ```bash
27
+ streamlit run app.py
28
+ ```
29
+
30
+ ## How it works
31
+
32
+ **app.py** is responsible for reading the files and the overall ui interface using streamlit
33
+ **query_chat.py** is responsible for the chat bot answers based on the read documents and the prompt