pic-to-story / config.py
Sunil Surendra Singh
removed the published openai key from config
ec6637f
import os
from dataclasses import dataclass
@dataclass
class AppConfig:
title = "Picture to Story Generator"
theme = "freddyaboulton/dracula_revamped"
css = "style.css"
openai_max_access_count = 200
openai_curr_access_count = None
mongo_client = None
db = "mydb"
collection = "pic2story-openai-access-counter"
key = "current_count"
HF_TOKEN = os.getenv("HF_TOKEN")
OPENAI_KEY = os.getenv("OPENAI_KEY")
I2T_API_URL = os.getenv("I2T_API_URL")
MONGO_CONN_STR = os.getenv("MONGO_CONN_STR")
genre_list = genre = [
"Adventure",
"Children Literature",
"Comedy",
"Drama",
"Fantasy",
"Fiction",
"Horror",
"Mystery",
"Non-fiction",
"Poetry",
"Romance",
"Satire",
"Surrealism",
"Urban Fantasy",
]
writing_style_list = [
"Cinematic",
"Conversational",
"Descriptive",
"Experimental",
"First-Person",
"Formal",
"Informal",
"Metaphorical",
"Minimalist",
"Narrative",
"Non-linear",
"Objective",
"Sensory",
"Stream of Consciousness",
"Symbolic",
"Third-Person Limited",
"Third-Person Omniscient",
]
app_config = AppConfig()