ProfessorLeVesseur commited on
Commit
73210fd
·
verified ·
1 Parent(s): 8ddc0ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.chat_completions(
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