Update app.py
Browse files
app.py
CHANGED
@@ -104,9 +104,9 @@ def check_condition(prompt, base64Frames):
|
|
104 |
|
105 |
|
106 |
messages = [
|
107 |
-
{"role": "system", "content": """You are analyzing video
|
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
|
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(
|