Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ with tabs[2]:
|
|
| 87 |
|
| 88 |
# Chat history and user input
|
| 89 |
chat_history_ai = st.text_area("Chat History", height=300, key=generate_random_key())
|
| 90 |
-
user_input_ai = st.text_input("Your Input")
|
| 91 |
|
| 92 |
# Send button
|
| 93 |
if st.button("Send AI Message"):
|
|
@@ -99,14 +99,14 @@ with tabs[3]:
|
|
| 99 |
st.header("Story Generation")
|
| 100 |
|
| 101 |
# Input fields for story generation
|
| 102 |
-
story_prompt = st.text_input("Story Prompt")
|
| 103 |
-
story_style = st.text_input("Story Style")
|
| 104 |
|
| 105 |
# Generate Story button
|
| 106 |
if st.button("Generate Story"):
|
| 107 |
st.info("Generating story...")
|
| 108 |
# Simulate story generation process
|
| 109 |
-
st.text_area("Story Output", "Generated story will appear here...", height=300)
|
| 110 |
|
| 111 |
# Save to PDF button
|
| 112 |
if st.button("Save to PDF"):
|
|
|
|
| 87 |
|
| 88 |
# Chat history and user input
|
| 89 |
chat_history_ai = st.text_area("Chat History", height=300, key=generate_random_key())
|
| 90 |
+
user_input_ai = st.text_input("Your Input", key=generate_random_key())
|
| 91 |
|
| 92 |
# Send button
|
| 93 |
if st.button("Send AI Message"):
|
|
|
|
| 99 |
st.header("Story Generation")
|
| 100 |
|
| 101 |
# Input fields for story generation
|
| 102 |
+
story_prompt = st.text_input("Story Prompt", key=generate_random_key())
|
| 103 |
+
story_style = st.text_input("Story Style", key=generate_random_key())
|
| 104 |
|
| 105 |
# Generate Story button
|
| 106 |
if st.button("Generate Story"):
|
| 107 |
st.info("Generating story...")
|
| 108 |
# Simulate story generation process
|
| 109 |
+
st.text_area("Story Output", "Generated story will appear here...", height=300, key=generate_random_key())
|
| 110 |
|
| 111 |
# Save to PDF button
|
| 112 |
if st.button("Save to PDF"):
|