Manasa1 commited on
Commit
841f853
·
verified ·
1 Parent(s): 6df9adf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -11
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, including key points, definitions, and important concepts.",
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
- - Include a clear title and organized sections with headings
77
- - Capture ALL key information, definitions, and concepts
78
- - Use bullet points for clarity and organization
79
- - Highlight important points, dates, names, and formulas
80
- - Include examples to explain difficult concepts
81
- - Provide comprehensive coverage like a diligent student would create
 
 
 
 
82
 
83
  Additional context/question from user: {user_query}
84
 
85
- Format the notes in a clean, organized manner with proper headings, subheadings, and emphasis on key points.
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
+