Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import os
|
|
| 5 |
|
| 6 |
def call_predict_api(image, private_key=None):
|
| 7 |
if private_key != os.environ["password"]:
|
| 8 |
-
return "Invalid API key. Please check your key and try again."
|
| 9 |
# Convert PIL images to base64 string
|
| 10 |
src_buffer = BytesIO()
|
| 11 |
image.save(src_buffer, format='PNG')
|
|
|
|
| 5 |
|
| 6 |
def call_predict_api(image, private_key=None):
|
| 7 |
if private_key != os.environ["password"]:
|
| 8 |
+
return "Invalid API key. Please check your key and try again."
|
| 9 |
# Convert PIL images to base64 string
|
| 10 |
src_buffer = BytesIO()
|
| 11 |
image.save(src_buffer, format='PNG')
|