Darpan07 commited on
Commit
5c8ec86
·
verified ·
1 Parent(s): 3c06087

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -28
app.py CHANGED
@@ -229,36 +229,36 @@ def main():
229
  else:
230
  st.warning("Plesase Process RFP Details to access this feature", icon="⚠️")
231
 
232
- if menu_choice == "Proposal":
233
- if st.session_state["is_data_processed"] == True:
234
- if st.session_state["is_user_stories_created"] == True:
235
- st.title("Proposal")
236
- num_slides = st.number_input(
237
- "Enter the number of slides", min_value=1, max_value=20, value=None
238
- )
239
- if num_slides:
240
- st.button(
241
- "Generate Presentation", on_click=lambda: prop(num_slides)
242
- )
243
 
244
- if st.session_state["is_presentation_created"] == True:
245
- st.success("Presentation Created!", icon="✅")
246
- with open("Generated_Presentation.pptx", "rb") as pptx_file:
247
- pptx_bytes = pptx_file.read()
248
- st.download_button(
249
- label="Download Presentation",
250
- data=pptx_bytes,
251
- file_name="Generated_Presentation_from_code.pptx",
252
- mime="application/vnd.openxmlformats-officedocument.presentationml.presentation",
253
- )
254
 
255
- else:
256
- st.warning(
257
- "Please Process the User Stories Data to access this feature",
258
- icon="⚠️",
259
- )
260
- else:
261
- st.warning("Plesase Process RFP Details to access this feature", icon="⚠️")
262
 
263
 
264
  if __name__ == "__main__":
 
229
  else:
230
  st.warning("Plesase Process RFP Details to access this feature", icon="⚠️")
231
 
232
+ # if menu_choice == "Proposal":
233
+ # if st.session_state["is_data_processed"] == True:
234
+ # if st.session_state["is_user_stories_created"] == True:
235
+ # st.title("Proposal")
236
+ # num_slides = st.number_input(
237
+ # "Enter the number of slides", min_value=1, max_value=20, value=None
238
+ # )
239
+ # if num_slides:
240
+ # st.button(
241
+ # "Generate Presentation", on_click=lambda: prop(num_slides)
242
+ # )
243
 
244
+ # if st.session_state["is_presentation_created"] == True:
245
+ # st.success("Presentation Created!", icon="✅")
246
+ # with open("Generated_Presentation.pptx", "rb") as pptx_file:
247
+ # pptx_bytes = pptx_file.read()
248
+ # st.download_button(
249
+ # label="Download Presentation",
250
+ # data=pptx_bytes,
251
+ # file_name="Generated_Presentation_from_code.pptx",
252
+ # mime="application/vnd.openxmlformats-officedocument.presentationml.presentation",
253
+ # )
254
 
255
+ # else:
256
+ # st.warning(
257
+ # "Please Process the User Stories Data to access this feature",
258
+ # icon="⚠️",
259
+ # )
260
+ # else:
261
+ # st.warning("Plesase Process RFP Details to access this feature", icon="⚠️")
262
 
263
 
264
  if __name__ == "__main__":