Spaces:
Running
Running
A newer version of the Streamlit SDK is available:
1.39.0
metadata
title: Ebook Gen
emoji: 🐢
colorFrom: pink
colorTo: gray
sdk: streamlit
sdk_version: 1.29.0
app_file: app.py
pinned: false
license: mit
Mixtral Playground
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Python Setup
Follow these steps to set up the environment:
Clone this repository.
Create and activate a new virtual environment using
conda
orvenv
. If you need guidance, refer to this tutorial.Create a
.env
file to store API credentials. You'll need these four credentials:HF_TOKEN = ... GOOGLE_SEARCH_ENGINE_ID = ... GOOGLE_SEARCH_API_KEY = ... BING_SEARCH_API_KEY = ...
Install the necessary requirements:
pip install -r requirements.txt --user
Start the Streamlit server using either command:
streamlit run app.py
or
python -m streamlit run app.py
Docker Setup
If you prefer using Docker, follow these steps:
Clone the repository.
Create a
.env
file to store API credentials, similar to the Python setup.Build docker image using
docker build -t mixtral-playground .
Run the image using
docker run --env-file .env -p 8501:8501 mixtral-playground