Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -300,10 +300,13 @@ st.subheader("Step 2: Generate Summaries")
|
|
300 |
st.write("Select Summary Language:")
|
301 |
summary_language_options = ["English", "Spanish", "French", "German", "Chinese"]
|
302 |
cols = st.columns(len(summary_language_options))
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
|
|
|
|
|
|
307 |
|
308 |
if st.session_state.rag_system.document_summary:
|
309 |
st.text_area("Document Summary", st.session_state.rag_system.document_summary, height=200)
|
@@ -319,11 +322,12 @@ if st.button("Generate Summary"):
|
|
319 |
st.subheader("Step 3: Ask Questions")
|
320 |
st.write("Select Q&A Language:")
|
321 |
qa_language_options = ["English", "Spanish", "French", "German", "Chinese"]
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
|
|
327 |
|
328 |
if st.session_state.rag_system.qa_chain:
|
329 |
history = []
|
@@ -341,11 +345,12 @@ else:
|
|
341 |
st.subheader("Step 4: Generate Podcast")
|
342 |
st.write("Select Podcast Language:")
|
343 |
podcast_language_options = ["English", "Spanish", "French", "German", "Chinese"]
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
|
|
349 |
|
350 |
if st.session_state.rag_system.document_summary:
|
351 |
if st.button("Generate Podcast"):
|
|
|
300 |
st.write("Select Summary Language:")
|
301 |
summary_language_options = ["English", "Spanish", "French", "German", "Chinese"]
|
302 |
cols = st.columns(len(summary_language_options))
|
303 |
+
# Default selected option
|
304 |
+
summary_language = st.radio(
|
305 |
+
"",
|
306 |
+
summary_language_options,
|
307 |
+
horizontal=True,
|
308 |
+
key="summary_language"
|
309 |
+
)
|
310 |
|
311 |
if st.session_state.rag_system.document_summary:
|
312 |
st.text_area("Document Summary", st.session_state.rag_system.document_summary, height=200)
|
|
|
322 |
st.subheader("Step 3: Ask Questions")
|
323 |
st.write("Select Q&A Language:")
|
324 |
qa_language_options = ["English", "Spanish", "French", "German", "Chinese"]
|
325 |
+
qa_language = st.radio(
|
326 |
+
"",
|
327 |
+
qa_language_options,
|
328 |
+
horizontal=True,
|
329 |
+
key="qa_language"
|
330 |
+
)
|
331 |
|
332 |
if st.session_state.rag_system.qa_chain:
|
333 |
history = []
|
|
|
345 |
st.subheader("Step 4: Generate Podcast")
|
346 |
st.write("Select Podcast Language:")
|
347 |
podcast_language_options = ["English", "Spanish", "French", "German", "Chinese"]
|
348 |
+
podcast_language = st.radio(
|
349 |
+
"",
|
350 |
+
podcast_language_options,
|
351 |
+
horizontal=True,
|
352 |
+
key="podcast_language"
|
353 |
+
)
|
354 |
|
355 |
if st.session_state.rag_system.document_summary:
|
356 |
if st.button("Generate Podcast"):
|