ProfessorLeVesseur commited on
Commit
7fac068
·
verified ·
1 Parent(s): c082e41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -202,7 +202,7 @@ def query_llm(prompt):
202
  system_prompt = "You are an expert in image accessibility and alternative text."
203
 
204
  # Generate the response using the Hugging Face InferenceClient's chat completion
205
- response = client.chat_completions.create(
206
  model="meta-llama/Llama-2-7b-chat-hf",
207
  messages=[
208
  {"role": "system", "content": system_prompt}, # Optional system prompt
 
202
  system_prompt = "You are an expert in image accessibility and alternative text."
203
 
204
  # Generate the response using the Hugging Face InferenceClient's chat completion
205
+ response = client.chat.completions.create(
206
  model="meta-llama/Llama-2-7b-chat-hf",
207
  messages=[
208
  {"role": "system", "content": system_prompt}, # Optional system prompt