Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ if video_file:
|
|
51 |
|
52 |
user_query = st.text_area(
|
53 |
"What insights are you seeking from the video?",
|
54 |
-
value="Generate detailed student-style notes from this video
|
55 |
help="Provide specific questions or insights you want from the video."
|
56 |
)
|
57 |
|
@@ -67,22 +67,26 @@ if video_file:
|
|
67 |
time.sleep(1)
|
68 |
processed_video = get_file(processed_video.name)
|
69 |
|
70 |
-
# Enhanced prompt for detailed student notes
|
71 |
analysis_prompt = (
|
72 |
f"""
|
73 |
-
Analyze the uploaded video thoroughly and create EXTREMELY DETAILED STUDENT NOTES.
|
74 |
|
75 |
Your notes should:
|
76 |
-
-
|
77 |
-
-
|
78 |
-
-
|
79 |
-
-
|
80 |
-
-
|
81 |
-
-
|
|
|
|
|
|
|
|
|
82 |
|
83 |
Additional context/question from user: {user_query}
|
84 |
|
85 |
-
|
86 |
"""
|
87 |
)
|
88 |
|
@@ -107,4 +111,5 @@ if video_file:
|
|
107 |
# Clean up temporary video file
|
108 |
Path(video_path).unlink(missing_ok=True)
|
109 |
else:
|
110 |
-
st.info("Upload a video file to begin analysis.")
|
|
|
|
51 |
|
52 |
user_query = st.text_area(
|
53 |
"What insights are you seeking from the video?",
|
54 |
+
value="Generate detailed student-style notes from this video in paragraph format, with thorough explanations of concepts and ideas.",
|
55 |
help="Provide specific questions or insights you want from the video."
|
56 |
)
|
57 |
|
|
|
67 |
time.sleep(1)
|
68 |
processed_video = get_file(processed_video.name)
|
69 |
|
70 |
+
# Enhanced prompt for detailed paragraph-style student notes
|
71 |
analysis_prompt = (
|
72 |
f"""
|
73 |
+
Analyze the uploaded video thoroughly and create EXTREMELY DETAILED STUDENT NOTES in full paragraph format.
|
74 |
|
75 |
Your notes should:
|
76 |
+
- Begin with a thorough introduction to the topic
|
77 |
+
- Use full, detailed paragraphs (NOT bullet points) to explain concepts
|
78 |
+
- Structure the content with clear headings and subheadings
|
79 |
+
- Include detailed explanations and elaborations on key concepts
|
80 |
+
- Connect ideas using transition sentences between paragraphs
|
81 |
+
- Use complete sentences and proper grammar throughout
|
82 |
+
- Create a cohesive narrative flow like detailed textbook content
|
83 |
+
- Include a conclusion paragraph summarizing the main points
|
84 |
+
|
85 |
+
IMPORTANT: Do NOT use bullet points or lists. Present all information in well-developed paragraphs.
|
86 |
|
87 |
Additional context/question from user: {user_query}
|
88 |
|
89 |
+
The notes should read like detailed textbook content that thoroughly explains all concepts from the video.
|
90 |
"""
|
91 |
)
|
92 |
|
|
|
111 |
# Clean up temporary video file
|
112 |
Path(video_path).unlink(missing_ok=True)
|
113 |
else:
|
114 |
+
st.info("Upload a video file to begin analysis.")
|
115 |
+
|