Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -404,13 +404,13 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
404 |
|
405 |
print("IMAGE messages after appending:", messages)
|
406 |
|
407 |
-
|
408 |
"Content-Type": "application/json",
|
409 |
"Authorization": f"Bearer {auth}"
|
410 |
}
|
411 |
|
412 |
try:
|
413 |
-
response = requests.post(host, headers=
|
414 |
"messages": messages,
|
415 |
"model": model_llm
|
416 |
}).json()
|
|
|
404 |
|
405 |
print("IMAGE messages after appending:", messages)
|
406 |
|
407 |
+
header = {
|
408 |
"Content-Type": "application/json",
|
409 |
"Authorization": f"Bearer {auth}"
|
410 |
}
|
411 |
|
412 |
try:
|
413 |
+
response = requests.post(host, headers=header, json={
|
414 |
"messages": messages,
|
415 |
"model": model_llm
|
416 |
}).json()
|