Spaces:
Runtime error
Runtime error
Update app.py
Browse files124 unmodified lines125126127128129130131132133134135136137138124 unmodified lineswith st.spinner("Analyzing..."):try:if user_query:prompt = f"""Analyze the video for content and context. Provide a detailed summary. Search the internet for similar topics discussed in the uploaded video.Respond to the following query using video insights and supplementary web research:{user_query}Provide a detailed, user-friendly, and actionable response.Video URL: {video_url}""" # Added Video URL for contextelse:prompt = f"""Analyze the uploaded video for content and context. Provide a detailed summary. Search the internet for similar topics discussed in the uploaded video.Video URL: {video_url}""" # Added Video URL for contextoutput = youtube_agent.run(prompt)st.markdown(output.content)124 unmodified lines125126127128129130131132133134135136137124 unmodified lineswith st.spinner("Analyzing..."):try:if user_query:prompt = f"""Respond to the following query using video insights and supplementary web research:{user_query}Provide a detailed, user-friendly, and actionable response.Video URL: {video_url}""" # Added Video URL for contextelse:prompt = f"""Provide a detailed, user-friendly, and actionable response.Video URL: {video_url}"""output = youtube_agent.run(prompt)st.markdown(output.content)
app.py+3-4