Spaces:
Runtime error
Runtime error
Update app.py
Browse files124 unmodified lines125126127128129128129130131132134135133134135136137124 unmodified lines with 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: 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 context else: 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 context 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