Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -422,17 +422,15 @@ def create_paper_audio_files(papers, input_question):
|
|
422 |
play_and_download_audio(combined_file, file_type=file_format)
|
423 |
papers.append({'title': 'Combined Summary', 'full_audio': combined_file})
|
424 |
|
425 |
-
|
426 |
-
|
427 |
def display_marquee_controls():
|
428 |
st.sidebar.markdown("### 🎯 Marquee Settings")
|
429 |
cols = st.sidebar.columns(2)
|
430 |
with cols[0]:
|
431 |
-
bg_color = st.color_picker("🎨 Background", "#1E1E1E")
|
432 |
-
text_color = st.color_picker("✍️ Text", "#FFFFFF")
|
433 |
with cols[1]:
|
434 |
-
font_size = st.slider("📏 Size", 10, 24, 14)
|
435 |
-
duration = st.slider("⏱️ Speed", 1, 20, 10)
|
436 |
|
437 |
return {
|
438 |
"background": bg_color,
|
@@ -444,7 +442,6 @@ def display_marquee_controls():
|
|
444 |
}
|
445 |
|
446 |
|
447 |
-
|
448 |
def display_papers(papers):
|
449 |
"""Display papers with their audio controls and marquee summaries."""
|
450 |
st.write("## Research Papers")
|
|
|
422 |
play_and_download_audio(combined_file, file_type=file_format)
|
423 |
papers.append({'title': 'Combined Summary', 'full_audio': combined_file})
|
424 |
|
|
|
|
|
425 |
def display_marquee_controls():
|
426 |
st.sidebar.markdown("### 🎯 Marquee Settings")
|
427 |
cols = st.sidebar.columns(2)
|
428 |
with cols[0]:
|
429 |
+
bg_color = st.color_picker("🎨 Background", "#1E1E1E", key="bg_color_picker")
|
430 |
+
text_color = st.color_picker("✍️ Text", "#FFFFFF", key="text_color_picker")
|
431 |
with cols[1]:
|
432 |
+
font_size = st.slider("📏 Size", 10, 24, 14, key="font_size_slider")
|
433 |
+
duration = st.slider("⏱️ Speed", 1, 20, 10, key="duration_slider")
|
434 |
|
435 |
return {
|
436 |
"background": bg_color,
|
|
|
442 |
}
|
443 |
|
444 |
|
|
|
445 |
def display_papers(papers):
|
446 |
"""Display papers with their audio controls and marquee summaries."""
|
447 |
st.write("## Research Papers")
|