File size: 929 Bytes
5253983
 
 
 
 
 
 
 
 
 
 
 
 
cf23c49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Ebook Gen
emoji: 🐢
colorFrom: pink
colorTo: gray
sdk: streamlit
sdk_version: 1.29.0
app_file: app.py
pinned: false
license: mit
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference


# Setup

1. Clone this repo
2. Create and activate a new virtual environment, using either `conda` or `venv`

    > [Tutorial for setting up virtual environments 🔗](https://www.perplexity.ai/search/how-to-make-GnFc09yGTvSyka0ZWqhSQg?s=c)

3. Make a .env file, for storing api credentials, currently using these 4 credentials.
   ```
   HF_TOKEN = ...
   GOOGLE_SEARCH_ENGINE_ID = ...
   GOOGLE_SEARCH_API_KEY = ...
   BING_SEARCH_API_KEY = ...
   ``` 

4. Install requirements using
    ```
    pip install -r requirements.txt --user
    ```
5. Startup streamlit server by using
    ```
    streamlit run app.py
    ```
    or 
    ```
    python -m streamlit run app.py
    ```