Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# App Title
|
4 |
+
st.title("StoryForge")
|
5 |
+
|
6 |
+
# App Description
|
7 |
+
st.write("StoryForge helps game developers generate comprehensive Game Design Documents. Input details about your game environment, protagonist, and antagonist to create a structured design document.")
|
8 |
+
|
9 |
+
# Sidebar Inputs
|
10 |
+
with st.sidebar:
|
11 |
+
st.header("Game Details")
|
12 |
+
game_environment = st.text_input("Game Environment", "Describe the setting of your game")
|
13 |
+
protagonist = st.text_input("Protagonist", "Describe the main character")
|
14 |
+
antagonist = st.text_input("Antagonist", "Describe the main villain or opposing force")
|
15 |
+
|
16 |
+
# Layout with two columns
|
17 |
+
col1, col2 = st.columns(2)
|
18 |
+
|
19 |
+
with col1:
|
20 |
+
st.header("Game Environment")
|
21 |
+
st.write(game_environment)
|
22 |
+
|
23 |
+
with col2:
|
24 |
+
st.header("Game Story")
|
25 |
+
st.write("Your game story will be generated based on the inputs provided.")
|
26 |
+
|
27 |
+
with col1:
|
28 |
+
st.header("Protagonist")
|
29 |
+
st.write(protagonist)
|
30 |
+
|
31 |
+
with col2:
|
32 |
+
st.header("Antagonist")
|
33 |
+
st.write(antagonist)
|