DrishtiSharma commited on
Commit
a01ba73
Β·
verified Β·
1 Parent(s): 879297f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -586,13 +586,17 @@ if st.button("Run Story Graph"):
586
  stories = result.get("stories", [])
587
  if stories:
588
  st.markdown("### πŸ“š Generated Stories")
589
- for i, story in enumerate(stories):
590
- st.markdown(f"**Story {i+1}:**")
591
- st.markdown(story.content)
 
 
 
592
  else:
593
  st.warning("No stories were generated.")
594
 
595
 
 
596
  # Step 5: Generate Podcast
597
  st.subheader("Step 4: Generate Podcast")
598
  st.write("Select Podcast Language:")
 
586
  stories = result.get("stories", [])
587
  if stories:
588
  st.markdown("### πŸ“š Generated Stories")
589
+
590
+ # Present stories in tabs
591
+ tabs = st.tabs([f"Story {i+1}" for i in range(len(stories))])
592
+ for tab, story in zip(tabs, stories):
593
+ with tab:
594
+ st.markdown(story.content)
595
  else:
596
  st.warning("No stories were generated.")
597
 
598
 
599
+
600
  # Step 5: Generate Podcast
601
  st.subheader("Step 4: Generate Podcast")
602
  st.write("Select Podcast Language:")