Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,8 @@ def check_condition(prompt, base64Frames):
|
|
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.
|
|
|
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(
|
|
|
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."}.
|
110 |
+
in the response make sure you don't use the words frames or images at all!"""},
|
111 |
{"role": "user", "content": [prompt, *map(lambda x: {"type": "image_url", "image_url": {"url": f'data:image/jpg;base64,{x}', "detail": "low"}}, base64Frames)]}
|
112 |
]
|
113 |
response = client.chat.completions.create(
|