Skip to content

Commit

Permalink
[SEND .PY]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Mar 10, 2024
1 parent 6e36ae4 commit c96b7dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def image_to_base64(image_path):
}
}

# Construct the request data
# Construct the request data
request_data = {
"model": "cogvlm-chat-17b",
Expand All @@ -35,7 +34,9 @@ def image_to_base64(image_path):
},
{
"type": "image_url",
"url": "https://images.pexels.com/photos/1108099/pexels-photo-1108099.jpeg"
"image_url": {
"url": f"data:image/jpeg;base64,{base64_image}"
}
}
]
}
Expand Down

0 comments on commit c96b7dc

Please sign in to comment.