Manasa1 commited on
Commit
16ebd6c
·
verified ·
1 Parent(s): 8679a19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -125,14 +125,13 @@ with tab2:
125
  with st.spinner("Analyzing..."):
126
  try:
127
  if user_query:
128
- prompt = f"""Analyze the video for content and context. Provide a detailed summary. Search the internet for similar topics discussed in the uploaded video.
129
- Respond to the following query using video insights and supplementary web research:
130
  {user_query}
131
  Provide a detailed, user-friendly, and actionable response.
132
  Video URL: {video_url}""" # Added Video URL for context
133
  else:
134
- 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.
135
- Video URL: {video_url}""" # Added Video URL for context
136
  output = youtube_agent.run(prompt)
137
 
138
  st.markdown(output.content)
 
125
  with st.spinner("Analyzing..."):
126
  try:
127
  if user_query:
128
+ prompt = f"""Respond to the following query using video insights and supplementary web research:
 
129
  {user_query}
130
  Provide a detailed, user-friendly, and actionable response.
131
  Video URL: {video_url}""" # Added Video URL for context
132
  else:
133
+ prompt = f"""Provide a detailed, user-friendly, and actionable response.
134
+ Video URL: {video_url}"""
135
  output = youtube_agent.run(prompt)
136
 
137
  st.markdown(output.content)