ebook-gen / README.md
pragneshbarik's picture
updated readme
b89ec8f

A newer version of the Streamlit SDK is available: 1.39.0

Upgrade
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:

  1. Clone this repository.

  2. Create and activate a new virtual environment using conda or venv. If you need guidance, refer to this tutorial.

  3. 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 = ...
    
  4. Install the necessary requirements:

    pip install -r requirements.txt --user
    
  5. 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:

  1. Clone the repository.

  2. Create a .env file to store API credentials, similar to the Python setup.

  3. Build docker image using

    docker build -t mixtral-playground .
    
  4. Run the image using

    docker run --env-file .env -p 8501:8501 mixtral-playground