Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,10 @@ def blackjack_ai(image):
|
|
20 |
instruction = "extract json from this image."
|
21 |
|
22 |
messages = [
|
|
|
|
|
|
|
|
|
23 |
{"role": "user", "content": [
|
24 |
{"type": "image", "image": image},
|
25 |
{"type": "text", "text": instruction}
|
|
|
20 |
instruction = "extract json from this image."
|
21 |
|
22 |
messages = [
|
23 |
+
{"role": "system",
|
24 |
+
"content": [
|
25 |
+
{"type":"text", "text": "You are a blackjack player. Extract the image into json information."} ]
|
26 |
+
},
|
27 |
{"role": "user", "content": [
|
28 |
{"type": "image", "image": image},
|
29 |
{"type": "text", "text": instruction}
|