Spaces:
Runtime error
Runtime error
Update app.py
Browse files449 unmodified lines45045145245345345445545545645745845946045745845988 unmodified lines548549550555449 unmodified lines reddit_data = fetch_reddit_data(keyword) youtube_data = fetch_youtube_data(keyword)
if reddit_data.empty and youtube_data.empty: st.error("No Reddit or YouTube data found. Check your API keys or try a different keyword.") st.error("No data found. Try a different keyword.") return elif reddit_data.empty: st.warning("⚠️ Reddit data could not be retrieved.") elif youtube_data.empty: st.warning("⚠️ YouTube data could not be retrieved.") combined_data = pd.concat([reddit_data, youtube_data], ignore_index=True) 88 unmodified lines pass main() app.py+2-7