tomerk commited on
Commit
a72aafd
·
verified ·
1 Parent(s): 74730ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,9 +104,9 @@ def check_condition(prompt, base64Frames):
104
 
105
 
106
  messages = [
107
- {"role": "system", "content": """You are analyzing video frames to check if the user's condition is met.
108
  Please respond with a JSON object in the following format:
109
- {"condition_met": true/false, "details": "optional details or summary. in the summary make sure to not use the words frames or images"}"""},
110
  {"role": "user", "content": [prompt, *map(lambda x: {"type": "image_url", "image_url": {"url": f'data:image/jpg;base64,{x}', "detail": "low"}}, base64Frames)]}
111
  ]
112
  response = client.chat.completions.create(
 
104
 
105
 
106
  messages = [
107
+ {"role": "system", "content": """You are analyzing video to check if the user's condition is met.
108
  Please respond with a JSON object in the following format:
109
+ {"condition_met": true/false, "details": "optional details or summary. in the summary make sure you DON'T use the words frames or images"}"""},
110
  {"role": "user", "content": [prompt, *map(lambda x: {"type": "image_url", "image_url": {"url": f'data:image/jpg;base64,{x}', "detail": "low"}}, base64Frames)]}
111
  ]
112
  response = client.chat.completions.create(