Commit
•
2f7f20b
1
Parent(s):
8a7baf5
histiry -> history (#33)
Browse files- histiry -> history (84f7e26b9ce5bceff90fd68dda1891175eeda6ef)
Co-authored-by: ben <[email protected]>
README.md
CHANGED
@@ -51,7 +51,7 @@ model.to("cuda:0")
|
|
51 |
url = "https://github.com/haotian-liu/LLaVA/blob/1a91fc274d7c35a9b50b3cb29c4247ae5837ce39/images/llava_v1_5_radar.jpg?raw=true"
|
52 |
image = Image.open(requests.get(url, stream=True).raw)
|
53 |
|
54 |
-
# Define a chat
|
55 |
# Each value in "content" has to be a list of dicts with types ("text", "image")
|
56 |
conversation = [
|
57 |
{
|
|
|
51 |
url = "https://github.com/haotian-liu/LLaVA/blob/1a91fc274d7c35a9b50b3cb29c4247ae5837ce39/images/llava_v1_5_radar.jpg?raw=true"
|
52 |
image = Image.open(requests.get(url, stream=True).raw)
|
53 |
|
54 |
+
# Define a chat history and use `apply_chat_template` to get correctly formatted prompt
|
55 |
# Each value in "content" has to be a list of dicts with types ("text", "image")
|
56 |
conversation = [
|
57 |
{
|