Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -199,23 +199,24 @@ def save_story(chat_history):
|
|
199 |
|
200 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
201 |
gr.Markdown("# 🔮 Interactive Story Time")
|
|
|
|
|
202 |
gr.Markdown("Create a completely unique literary world, one choice at a time. Dare to explore the unknown.")
|
203 |
|
204 |
with gr.Row():
|
205 |
with gr.Column(scale=3):
|
206 |
# Chat window + user input
|
207 |
chatbot = gr.Chatbot(
|
208 |
-
height=500,
|
209 |
-
bubble_full_width=True,
|
210 |
show_copy_button=True,
|
211 |
-
avatar_images=("👤", "🧙♂️"),
|
212 |
-
type="
|
213 |
container=True,
|
214 |
scale=1,
|
215 |
-
min_width=800,
|
216 |
-
value=[],
|
217 |
-
render=True
|
218 |
-
layout="bubble"
|
219 |
)
|
220 |
msg = gr.Textbox(
|
221 |
placeholder="Describe what you want to do next in the story...",
|
|
|
199 |
|
200 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
201 |
gr.Markdown("# 🔮 Interactive Story Time")
|
202 |
+
with gr.Row():
|
203 |
+
status_message = gr.Markdown("Ready to begin your adventure...", visible=True)
|
204 |
gr.Markdown("Create a completely unique literary world, one choice at a time. Dare to explore the unknown.")
|
205 |
|
206 |
with gr.Row():
|
207 |
with gr.Column(scale=3):
|
208 |
# Chat window + user input
|
209 |
chatbot = gr.Chatbot(
|
210 |
+
height=500, # Increased height
|
211 |
+
bubble_full_width=True, # Allow bubbles to use full width
|
212 |
show_copy_button=True,
|
213 |
+
avatar_images=("👤", "🧙♂️"),
|
214 |
+
type="messages",
|
215 |
container=True,
|
216 |
scale=1,
|
217 |
+
min_width=800, # Ensure minimum width
|
218 |
+
value=[], # Initialize with empty list
|
219 |
+
render=True
|
|
|
220 |
)
|
221 |
msg = gr.Textbox(
|
222 |
placeholder="Describe what you want to do next in the story...",
|