Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ async def predict_image_and_nutrition(file: UploadFile = File(...)):
|
|
| 99 |
response = inference_client.post(
|
| 100 |
json={
|
| 101 |
"inputs": prompt,
|
| 102 |
-
"parameters": {"max_new_tokens":
|
| 103 |
"task": "text-generation",
|
| 104 |
},
|
| 105 |
)
|
|
|
|
| 99 |
response = inference_client.post(
|
| 100 |
json={
|
| 101 |
"inputs": prompt,
|
| 102 |
+
"parameters": {"max_new_tokens": 550},
|
| 103 |
"task": "text-generation",
|
| 104 |
},
|
| 105 |
)
|