Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ async def predict_image_and_nutrition(file: UploadFile = File(...)):
|
|
| 91 |
# Initialize the InferenceClient with your token
|
| 92 |
llm_client = InferenceClient(
|
| 93 |
model=repo_id,
|
| 94 |
-
token=api_token,
|
| 95 |
timeout=120,
|
| 96 |
)
|
| 97 |
# Function to call the LLM
|
|
|
|
| 91 |
# Initialize the InferenceClient with your token
|
| 92 |
llm_client = InferenceClient(
|
| 93 |
model=repo_id,
|
| 94 |
+
token=api_token[:-2],
|
| 95 |
timeout=120,
|
| 96 |
)
|
| 97 |
# Function to call the LLM
|