histiry -> history
Browse files
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 |
{
|