davidr99 commited on
Commit
7b3b2c9
·
verified ·
1 Parent(s): 6d2e25b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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}