grapplerulrich commited on
Commit
96538e7
β€’
1 Parent(s): e95e6f0

Rename files

Browse files
README.md CHANGED
@@ -11,5 +11,11 @@ The fol
11
  - To deactive the virtual envoirnment run `deactivate` within the virtual envoirnment.
12
  - Install the required packages: `.venv/bin/pip install -r requirements.txt`
13
  - `.venv/bin/pip install -e .`
14
- - Add the Google Search API key to `GOOGLE_SEARCH_API_KEY` in `google-search/.env`. For example `GOOGLE_SEARCH_API_KEY=addkeyehere` (TODO) add documentation on how to get the API key.
15
- - To start the interface: `streamlit run google-search/app.py`
 
 
 
 
 
 
 
11
  - To deactive the virtual envoirnment run `deactivate` within the virtual envoirnment.
12
  - Install the required packages: `.venv/bin/pip install -r requirements.txt`
13
  - `.venv/bin/pip install -e .`
14
+ - [Create a custom search engine in Google](https://programmablesearchengine.google.com/controlpanel/all).
15
+ - Create a API for the custom search engine.
16
+ - Add the custom search engine key and PI key to `.streamlit/secrets.toml`.
17
+ ```toml
18
+ google_search_api_key = "api-key"
19
+ google_search_engine_id = "search-engine-id"
20
+ ```
21
+ - To start the interface: `streamlit run app.py`
main.py β†’ app.py RENAMED
@@ -8,7 +8,7 @@ from slugify import slugify
8
  from transformers import pipeline
9
  import uuid
10
 
11
- from beautiful_soup.app import get_url_content
12
 
13
  @cache
14
  def google_search_api_request( query ):
 
8
  from transformers import pipeline
9
  import uuid
10
 
11
+ from beautiful_soup.beautiful_soup import get_url_content
12
 
13
  @cache
14
  def google_search_api_request( query ):
beautiful_soup/{app.py β†’ beautiful_soup.py} RENAMED
File without changes