Spaces:
Running
Running
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 | |
``` | |