DrishtiSharma commited on
Commit
5158cbc
·
verified ·
1 Parent(s): 62835ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -254,7 +254,7 @@ with st.sidebar:
254
  #This app is inspired by the [RAG_HW HuggingFace Space](https://huggingface.co/spaces/wint543/RAG_HW).
255
  #It allows users to:
256
  #1. Upload and process documents
257
- #2. Generate summaries
258
  #3. Ask questions
259
  #4. Create podcasts
260
  #"""
@@ -278,8 +278,8 @@ if st.button("Process Documents"):
278
  else:
279
  st.warning("No files uploaded.")
280
 
281
- # Step 2: Generate Summaries
282
- st.subheader("Step 2: Generate Summaries")
283
  st.write("Select Summary Language:")
284
  summary_language_options = ["English", "Hindi", "Spanish", "French", "German", "Chinese", "Japanese"]
285
  summary_language = st.radio(
@@ -300,7 +300,7 @@ if st.button("Generate Summary"):
300
  else:
301
  st.error("Failed to generate summary.")
302
  else:
303
- st.info("Please process documents first to generate summaries.")
304
 
305
  # Step 3: Ask Questions
306
  st.subheader("Step 3: Ask Questions")
@@ -347,4 +347,4 @@ if st.session_state.rag_system.document_summary:
347
  else:
348
  st.error(script)
349
  else:
350
- st.info("Please process documents and generate summaries before creating a podcast.")
 
254
  #This app is inspired by the [RAG_HW HuggingFace Space](https://huggingface.co/spaces/wint543/RAG_HW).
255
  #It allows users to:
256
  #1. Upload and process documents
257
+ #2. Generate summary
258
  #3. Ask questions
259
  #4. Create podcasts
260
  #"""
 
278
  else:
279
  st.warning("No files uploaded.")
280
 
281
+ # Step 2: Generate Summary
282
+ st.subheader("Step 2: Generate Summary")
283
  st.write("Select Summary Language:")
284
  summary_language_options = ["English", "Hindi", "Spanish", "French", "German", "Chinese", "Japanese"]
285
  summary_language = st.radio(
 
300
  else:
301
  st.error("Failed to generate summary.")
302
  else:
303
+ st.info("Please process documents first to generate summary.")
304
 
305
  # Step 3: Ask Questions
306
  st.subheader("Step 3: Ask Questions")
 
347
  else:
348
  st.error(script)
349
  else:
350
+ st.info("Please process documents and generate summary before creating a podcast.")