Spaces:
Sleeping
Sleeping
grapplerulrich
commited on
Commit
·
96538e7
1
Parent(s):
e95e6f0
Rename files
Browse files- README.md +8 -2
- main.py → app.py +1 -1
- beautiful_soup/{app.py → beautiful_soup.py} +0 -0
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 |
-
-
|
15 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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
|