WIP - UI, Audio, firecrawl, long-form - V0.5

This commit is contained in:
ajaysi
2024-06-21 22:20:43 +05:30
parent 074ddf6210
commit 89b2e47b9c
3 changed files with 20 additions and 30 deletions

View File

@@ -135,9 +135,9 @@ def blog_from_keyword():
type=["txt", "pdf", "docx", "jpg", "jpeg", "png", "mp3", "wav", "mp4", "mkv", "avi"],
help='Attach files such as audio, video, images, or documents.')
with col3:
user_input = record_voice()
if user_input:
st.info(user_input)
audio_input = record_voice()
if audio_input:
st.info(audio_input)
temp_file_path = None
if uploaded_file is not None:
@@ -152,7 +152,7 @@ def blog_from_keyword():
st.empty()
if user_input == "":
user_input = None
if uploaded_file is None and user_input is None:
if not uploaded_file and not user_input and not audio_input:
st.error("🤬🤬 Either Enter/Type/Attach, can't read your mind.(yet..)")
st.stop()