Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,7 +102,7 @@ if uploaded_file is not None and analyze_button:
|
|
| 102 |
# Make the request to the Hugging Face API
|
| 103 |
try:
|
| 104 |
# Send the request to the model
|
| 105 |
-
completion = client.
|
| 106 |
model="meta-llama/Llama-3.2-11B-Vision-Instruct",
|
| 107 |
messages=messages,
|
| 108 |
max_new_tokens=1200
|
|
|
|
| 102 |
# Make the request to the Hugging Face API
|
| 103 |
try:
|
| 104 |
# Send the request to the model
|
| 105 |
+
completion = client.chat.completions.create(
|
| 106 |
model="meta-llama/Llama-3.2-11B-Vision-Instruct",
|
| 107 |
messages=messages,
|
| 108 |
max_new_tokens=1200
|