Spaces:
Sleeping
Sleeping
File size: 1,641 Bytes
afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 afd2946 9d262e3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
import streamlit as st
# App Title
st.title("StoryForage")
# App Description
st.write("""
Welcome to StoryForage! This app helps game developers generate a game design document by crafting a story outline based on your inputs. Simply provide details about your game's environment, protagonist, and antagonist, and let StoryForage do the rest.
""")
# Sidebar for User Input
st.sidebar.header("Game Design Inputs")
environment = st.sidebar.text_input("Game Environment",
"Describe the world or setting where your game takes place. (e.g., a post-apocalyptic city, a magical forest, etc.)")
protagonist = st.sidebar.text_input("Protagonist",
"Describe the main character of your game. (e.g., a brave knight, a cunning thief, etc.)")
antagonist = st.sidebar.text_input("Antagonist",
"Describe the primary adversary or villain in your game. (e.g., an evil sorcerer, a corrupt king, etc.)")
# Main App Layout with Two Columns
col1, col2 = st.columns(2)
# Column 1 Content
with col1:
st.subheader("Game Story")
if environment and protagonist:
st.write(f"Environment: {environment}")
st.write(f"Protagonist: {protagonist}")
else:
st.write("Please fill out the environment and protagonist details.")
# Column 2 Content
with col2:
st.subheader("Protagonist and Antagonist")
if protagonist and antagonist:
st.write(f"Protagonist: {protagonist}")
st.write(f"Antagonist: {antagonist}")
else:
st.write("Please fill out both the protagonist and antagonist details.")
|