Spaces:
Running
Running
Commit
·
2bebf02
1
Parent(s):
bc80882
messages
Browse files
main.py
CHANGED
@@ -123,20 +123,16 @@ def predict(data: PredictRequest):
|
|
123 |
|
124 |
|
125 |
# Create the input message structure
|
126 |
-
# messages = [
|
127 |
-
# {
|
128 |
-
# "role": "user",
|
129 |
-
# "content": [
|
130 |
-
# {"type": "image", "image": f"data:image;base64,{data.image_base64}"},
|
131 |
-
# {"type": "text", "text": data.prompt},
|
132 |
-
# ],
|
133 |
-
# }
|
134 |
-
# ]
|
135 |
-
|
136 |
messages = [
|
137 |
-
|
138 |
-
|
|
|
|
|
|
|
|
|
|
|
139 |
]
|
|
|
140 |
|
141 |
print("messages: ", messages)
|
142 |
|
|
|
123 |
|
124 |
|
125 |
# Create the input message structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
messages = [
|
127 |
+
{
|
128 |
+
"role": "user",
|
129 |
+
"content": [
|
130 |
+
{"type": "image", "image": f"data:image;base64,{data.image_base64}"},
|
131 |
+
{"type": "text", "text": data.prompt},
|
132 |
+
],
|
133 |
+
}
|
134 |
]
|
135 |
+
|
136 |
|
137 |
print("messages: ", messages)
|
138 |
|