Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def ocr_with_pixtral(image):
|
|
| 18 |
img_base64 = base64.b64encode(img_bytes).decode('utf-8')
|
| 19 |
|
| 20 |
# Retrieve the API key from environment variables
|
| 21 |
-
api_key =
|
| 22 |
|
| 23 |
# Specify model
|
| 24 |
model = "pixtral-12b-2409"
|
|
|
|
| 18 |
img_base64 = base64.b64encode(img_bytes).decode('utf-8')
|
| 19 |
|
| 20 |
# Retrieve the API key from environment variables
|
| 21 |
+
api_key = os.getenv('mistral_api_key')
|
| 22 |
|
| 23 |
# Specify model
|
| 24 |
model = "pixtral-12b-2409"
|