beweinreich commited on
Commit
402485b
1 Parent(s): f8f47d0

improve prompt

Browse files
Files changed (1) hide show
  1. video_analyzer.py +7 -7
video_analyzer.py CHANGED
@@ -66,7 +66,7 @@ class VideoAnalyzer:
66
  "content": [
67
  {
68
  "type": "text",
69
- "text": "Describe the person in this image. Be detailed as it pertains to their physical and emotional state. Please return the response in a list of traits or characteristics in a comma-separated list."
70
  },
71
  {
72
  "type": "image_url",
@@ -109,9 +109,9 @@ class VideoAnalyzer:
109
  common_traits = list(set(cleaned_traits))
110
  return common_traits
111
 
112
- if __name__ == "__main__":
113
- # Use either video_path or video_url
114
- video_url = "https://video.twilio.com/v1/Recordings/RTd8f67290c5665868602625bec14518e5/Media"
115
- analyzer = VideoAnalyzer(video_url=video_url)
116
- traits = analyzer.retrieve_traits()
117
- print(traits)
 
66
  "content": [
67
  {
68
  "type": "text",
69
+ "text": "Describe the person in this image. Focus on their physical and emotional state. Exclude details about their surroundings. Provide the description as a comma-separated list."
70
  },
71
  {
72
  "type": "image_url",
 
109
  common_traits = list(set(cleaned_traits))
110
  return common_traits
111
 
112
+ # if __name__ == "__main__":
113
+ # # Use either video_path or video_url
114
+ # video_url = "https://video.twilio.com/v1/Recordings/RTd8f67290c5665868602625bec14518e5/Media"
115
+ # analyzer = VideoAnalyzer(video_url=video_url)
116
+ # traits = analyzer.retrieve_traits()
117
+ # print(traits)