Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -831,7 +831,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
831 |
# return "Answer: not found in the string."
|
832 |
payload = json.dumps(
|
833 |
{
|
834 |
-
"messages": [
|
835 |
"role": "user",
|
836 |
"content": [
|
837 |
{
|
@@ -844,7 +844,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
844 |
"image_url": Images
|
845 |
}
|
846 |
]
|
847 |
-
],
|
848 |
"model": "gemini-pro-vision"
|
849 |
}
|
850 |
)
|
|
|
831 |
# return "Answer: not found in the string."
|
832 |
payload = json.dumps(
|
833 |
{
|
834 |
+
"messages": [{
|
835 |
"role": "user",
|
836 |
"content": [
|
837 |
{
|
|
|
844 |
"image_url": Images
|
845 |
}
|
846 |
]
|
847 |
+
}],
|
848 |
"model": "gemini-pro-vision"
|
849 |
}
|
850 |
)
|