Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,14 +123,14 @@ def main():
|
|
123 |
torch.cuda.empty_cache()
|
124 |
torch.manual_seed(0)
|
125 |
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
|
135 |
if __name__ == "__main__":
|
136 |
main()
|
|
|
123 |
torch.cuda.empty_cache()
|
124 |
torch.manual_seed(0)
|
125 |
|
126 |
+
if all_output_texts:
|
127 |
+
# Step 5: Generate story
|
128 |
+
generate_story_button = st.button("Generate Story")
|
129 |
+
|
130 |
+
if generate_story_button:
|
131 |
+
story = generate_story(all_output_texts)
|
132 |
+
st.write("Generated Story:")
|
133 |
+
st.write(story)
|
134 |
|
135 |
if __name__ == "__main__":
|
136 |
main()
|