mirror of
https://github.com/tcsenpai/youlama.git
synced 2025-06-07 03:35:41 +00:00
changed ehnance to read
This commit is contained in:
parent
55323e0df9
commit
374924189f
25
src/main.py
25
src/main.py
@ -421,19 +421,20 @@ def main():
|
|||||||
|
|
||||||
# Video URL input section
|
# Video URL input section
|
||||||
with st.container():
|
with st.container():
|
||||||
col1, col2, col3 = st.columns([3, 1, 1])
|
# URL in its own row
|
||||||
|
video_url = st.text_input(
|
||||||
|
"🎥 Video URL",
|
||||||
|
placeholder="https://www.youtube.com/watch?v=...",
|
||||||
|
)
|
||||||
|
|
||||||
|
# Buttons in a separate row
|
||||||
|
col1, col2 = st.columns(2)
|
||||||
|
|
||||||
with col1:
|
with col1:
|
||||||
video_url = st.text_input(
|
|
||||||
"🎥 Video URL",
|
|
||||||
placeholder="https://www.youtube.com/watch?v=...",
|
|
||||||
)
|
|
||||||
|
|
||||||
with col2:
|
|
||||||
summarize_button = st.button("🚀 Summarize", use_container_width=True)
|
summarize_button = st.button("🚀 Summarize", use_container_width=True)
|
||||||
|
|
||||||
with col3:
|
with col2:
|
||||||
enhance_button = st.button("✨ Enhance", use_container_width=True)
|
read_button = st.button("📖 Read", use_container_width=True)
|
||||||
|
|
||||||
# Advanced settings in collapsible sections
|
# Advanced settings in collapsible sections
|
||||||
with st.expander("⚙️ Advanced Settings"):
|
with st.expander("⚙️ Advanced Settings"):
|
||||||
@ -462,9 +463,9 @@ def main():
|
|||||||
with adv_col2:
|
with adv_col2:
|
||||||
fallback_to_whisper = st.checkbox("Fallback to Whisper", value=True)
|
fallback_to_whisper = st.checkbox("Fallback to Whisper", value=True)
|
||||||
|
|
||||||
if (summarize_button or enhance_button) and video_url:
|
if (summarize_button or read_button) and video_url:
|
||||||
if enhance_button:
|
if read_button:
|
||||||
# Enhance transcript
|
# Enhance transcript (now called read)
|
||||||
result = fix_transcript(
|
result = fix_transcript(
|
||||||
video_url,
|
video_url,
|
||||||
selected_model,
|
selected_model,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user