Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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
|