CoolFace
Apppublic

jbilcke-hf/ai-comic-factory

sourceHugging Faceupdated 11mo agoView on Hugging Face
11klikes
.env108 linesDownload Raw Back to root
1# Supported values:2# - REPLICATE3# - INFERENCE_ENDPOINT4# - INFERENCE_API5# - OPENAI6RENDERING_ENGINE="INFERENCE_API"7 8# Supported values:9# - INFERENCE_ENDPOINT10# - INFERENCE_API11# - OPENAI12# - GROQ13# - ANTHROPIC14LLM_ENGINE="INFERENCE_API"15 16# set this to control the number of pages17MAX_NB_PAGES=618 19# Set to "true" to create artificial delays and smooth out traffic20NEXT_PUBLIC_ENABLE_RATE_LIMITER="false"21 22# ------------- HUGGING FACE OAUTH -------------23ENABLE_HUGGING_FACE_OAUTH=24ENABLE_HUGGING_FACE_OAUTH_WALL=25HUGGING_FACE_OAUTH_CLIENT_ID=26 27# in production this should be the space's domain and/or URL28HUGGING_FACE_OAUTH_REDIRECT_URL=29 30# this one must be kept secret (and is unused for now)31HUGGING_FACE_OAUTH_SECRET=32 33# ------------- PROVIDER AUTH ------------34# You only need to configure the access token(s) for the provider(s) you want to use35 36# HuggingFace.co token: available for the LLM engine and the RENDERING engine37AUTH_HF_API_TOKEN=38 39# Replicate.com token: available for the RENDERING engine40AUTH_REPLICATE_API_TOKEN=41 42# OpenAI.dom token: available for the LLM engine and the RENDERING engine43AUTH_OPENAI_API_KEY=44 45# Groq.com key: available for the LLM engine46AUTH_GROQ_API_KEY=47 48# Anthropic.com key: available for the LLM engine49AUTH_ANTHROPIC_API_KEY=50 51# ------------- RENDERING API CONFIG --------------52 53# If you decide to use Replicate for the RENDERING engine54RENDERING_REPLICATE_API_MODEL="stabilityai/sdxl"55RENDERING_REPLICATE_API_MODEL_VERSION="da77bc59ee60423279fd632efb4795ab731d9e3ca9705ef3341091fb989b7eaf"56 57# If you decide to use a private Hugging Face Inference Endpoint for the RENDERING engine58RENDERING_HF_INFERENCE_ENDPOINT_URL="https://XXXXXXXXXX.endpoints.huggingface.cloud"59 60# If you decide to use a Hugging Face Inference API model for the RENDERING engine61RENDERING_HF_INFERENCE_API_BASE_MODEL="black-forest-labs/FLUX.1-schnell"62 63# If you decide to use a Hugging Face Inference API model for the RENDERING engine64RENDERING_HF_INFERENCE_API_REFINER_MODEL=""65 66# If your model returns a different file type (eg. jpg or webp) change it here67RENDERING_HF_INFERENCE_API_FILE_TYPE="image/png"68 69RENDERING_OPENAI_API_BASE_URL="https://api.openai.com/v1"70RENDERING_OPENAI_API_MODEL="dall-e-3"71 72# ------------- LLM API CONFIG ----------------73 74LLM_GROQ_API_MODEL="mixtral-8x7b-32768"75 76# If you decide to use OpenAI for the LLM engine77LLM_OPENAI_API_BASE_URL="https://api.openai.com/v1"78LLM_OPENAI_API_MODEL="gpt-4-turbo"79 80# If you decide to use Anthropic (eg. Claude) for the LLM engine81# https://docs.anthropic.com/claude/docs/models-overview82LLM_ANTHROPIC_API_MODEL="claude-3-opus-20240229"83 84# If you decide to use a private Hugging Face Inference Endpoint for the LLM engine85LLM_HF_INFERENCE_ENDPOINT_URL=""86 87# If you decide to use a Hugging Face Inference API model for the LLM engine88# LLM_HF_INFERENCE_API_MODEL="HuggingFaceH4/zephyr-7b-beta"89LLM_HF_INFERENCE_API_MODEL="HuggingFaceH4/zephyr-7b-beta"90 91# ----------- COMMUNITY SHARING (OPTIONAL) -----------92# You don't need those community sharing options to run the AI Comic Factory93# locally or on your own server (they are meant to be used by the Hugging Face team)94NEXT_PUBLIC_ENABLE_COMMUNITY_SHARING="false"95COMMUNITY_API_URL=96COMMUNITY_API_TOKEN=97COMMUNITY_API_ID=98 99# ----------- CENSORSHIP (OPTIONAL) -----------100# censorship is currently disabled, but will be required when we create a "community roll"101# (a public repositoruy of user-generated comic strips)102ENABLE_CENSORSHIP="false"103 104# Due to the sensitive nature of some of keywords we want to ban (users try all kind of crazy illegal things)105# the words are are not put in clear in the source code, but behind an encryption key106# (I don't want the project to be flagged by an AI robot police on GitHub or something)107SECRET_FINGERPRINT=""108