Mo-alaa commited on
Commit
373573b
1 Parent(s): f942032

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -85,7 +85,6 @@ st.title("Blog Generator")
85
  # Input and button
86
  topic = st.text_input("Enter Title for the blog")
87
  button_clicked = st.button("Create blog!")
88
- st.subheader(topic)
89
  # Load existing ideas
90
  existing_ideas = load_ideas()
91
  st.sidebar.header("Previous Ideas:")
@@ -98,8 +97,8 @@ if topic in keys:
98
  # Display content and image for the selected idea
99
  selected_idea_from_list = next((idea for idea in existing_ideas if selected_idea in idea), None)
100
  st.subheader(selected_idea)
101
- st.markdown(selected_idea_from_list[selected_idea]["content"])
102
  st.image(selected_idea_from_list[selected_idea]["image_path"])
 
103
  else:
104
  index = 0
105
  # Handle button click
 
85
  # Input and button
86
  topic = st.text_input("Enter Title for the blog")
87
  button_clicked = st.button("Create blog!")
 
88
  # Load existing ideas
89
  existing_ideas = load_ideas()
90
  st.sidebar.header("Previous Ideas:")
 
97
  # Display content and image for the selected idea
98
  selected_idea_from_list = next((idea for idea in existing_ideas if selected_idea in idea), None)
99
  st.subheader(selected_idea)
 
100
  st.image(selected_idea_from_list[selected_idea]["image_path"])
101
+ st.markdown(selected_idea_from_list[selected_idea]["content"])
102
  else:
103
  index = 0
104
  # Handle button click