Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def process_image_and_get_response(image, user_description):
|
|
| 11 |
Since Groq's API doesn't support images, we use the description as input.
|
| 12 |
"""
|
| 13 |
if not user_description:
|
| 14 |
-
user_description = "
|
| 15 |
try:
|
| 16 |
completion = client.chat.completions.create(
|
| 17 |
model="meta-llama/llama-4-maverick-17b-128e-instruct",
|
|
@@ -22,7 +22,7 @@ def process_image_and_get_response(image, user_description):
|
|
| 22 |
}
|
| 23 |
],
|
| 24 |
temperature=1,
|
| 25 |
-
max_completion_tokens=
|
| 26 |
top_p=1,
|
| 27 |
stream=True,
|
| 28 |
stop=None
|
|
|
|
| 11 |
Since Groq's API doesn't support images, we use the description as input.
|
| 12 |
"""
|
| 13 |
if not user_description:
|
| 14 |
+
user_description = "Extrait le tableau en entier de cette image et recopie le à l'identique ici pour que je puisse le copier coller." # Placeholder for image-to-text
|
| 15 |
try:
|
| 16 |
completion = client.chat.completions.create(
|
| 17 |
model="meta-llama/llama-4-maverick-17b-128e-instruct",
|
|
|
|
| 22 |
}
|
| 23 |
],
|
| 24 |
temperature=1,
|
| 25 |
+
max_completion_tokens=8024,
|
| 26 |
top_p=1,
|
| 27 |
stream=True,
|
| 28 |
stop=None
|