Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,14 +125,13 @@ with tab2:
|
|
| 125 |
with st.spinner("Analyzing..."):
|
| 126 |
try:
|
| 127 |
if user_query:
|
| 128 |
-
prompt = f"""
|
| 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"""
|
| 135 |
-
|
| 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)
|