Spaces:
Runtime error
Runtime error
import os | |
from middle_earth_adventure.utils import pick_rand_items | |
import streamlit as st | |
import random | |
# initialize rand object (only runs on import) | |
st.session_state.rand = random.random() | |
# GPT model object | |
TEXT_MODEL="gpt-3.5-turbo" | |
AUDIO_MODEL="tts-1" | |
OPENAI_KEY = os.environ.get("OPENAI_PERSONAL_KEY") | |
# Character | |
ALL_SKILLS = ["Speed", "Carisma", "Intelligence", "Force", "Deceit", "Perception", "Stealth", "Creativity", "Dexterity", "Vision"] | |
ALL_TYPES = ["Warrior", "Wizard's Apprentice", "Mystical Feline", "Beautiful Ghost", "Naive Wood Elf", "Oktoberfest Peasant"] | |
ALL_NAMES = ["Kim", "Gearld", "Yoyo", "Jojee"] | |
# Game variability | |
PLAYER_FEELINGS = ["scared", "anxious", "hopeful", "intrigued", "naive"] | |
RIDDLE_OPTIONS = ["greek-inspired", "old-fashion", "funny", "fancy sounding", "human-centered", "animal-inspired"] | |
FIGHT_OPTIONS = ["funny", "epic", "magical", "gothic", "danger", "mystical", "scary"] | |
ROMANCE_OPTIONS = ["mystic", "dramatic", "adventurous", "loyal"] | |