Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def bot(history):
|
|
82 |
chat_images = get_chat_images(history)
|
83 |
generation_kwargs = {
|
84 |
"max_new_tokens": 4096,
|
85 |
-
"temperature": 0.
|
86 |
"top_p": 1.0,
|
87 |
"do_sample": True,
|
88 |
}
|
@@ -142,14 +142,14 @@ def build_demo():
|
|
142 |
"text": "<image> <image> What's the difference between these two images? Please describe as much as you can.",
|
143 |
"files": ["./examples/image1.jpg", "./examples/image2.jpg"]
|
144 |
},
|
145 |
-
{
|
146 |
-
"text": "<image> <image> Which image shows an older dog?",
|
147 |
-
"files": ["./examples/image8.jpg", "./examples/image9.jpg"]
|
148 |
-
},
|
149 |
{
|
150 |
"text": "<image> <image> How many dices are there in image 1 and image 2 respectively?",
|
151 |
"files": ["./examples/image10.jpg", "./examples/image11.jpg"]
|
152 |
},
|
|
|
|
|
|
|
|
|
153 |
{
|
154 |
"text": "Write a description for the given image sequence in a single paragraph, what is happening in this episode?",
|
155 |
"files": ["./examples/image3.jpg", "./examples/image4.jpg", "./examples/image5.jpg", "./examples/image6.jpg", "./examples/image7.jpg"]
|
|
|
82 |
chat_images = get_chat_images(history)
|
83 |
generation_kwargs = {
|
84 |
"max_new_tokens": 4096,
|
85 |
+
"temperature": 0.7,
|
86 |
"top_p": 1.0,
|
87 |
"do_sample": True,
|
88 |
}
|
|
|
142 |
"text": "<image> <image> What's the difference between these two images? Please describe as much as you can.",
|
143 |
"files": ["./examples/image1.jpg", "./examples/image2.jpg"]
|
144 |
},
|
|
|
|
|
|
|
|
|
145 |
{
|
146 |
"text": "<image> <image> How many dices are there in image 1 and image 2 respectively?",
|
147 |
"files": ["./examples/image10.jpg", "./examples/image11.jpg"]
|
148 |
},
|
149 |
+
{
|
150 |
+
"text": "<image> <image> Which image shows an older dog?",
|
151 |
+
"files": ["./examples/image8.jpg", "./examples/image9.jpg"]
|
152 |
+
},
|
153 |
{
|
154 |
"text": "Write a description for the given image sequence in a single paragraph, what is happening in this episode?",
|
155 |
"files": ["./examples/image3.jpg", "./examples/image4.jpg", "./examples/image5.jpg", "./examples/image6.jpg", "./examples/image7.jpg"]
|