VoVanPhuc commited on
Commit
1bae9c3
·
verified ·
1 Parent(s): 64e4be7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.", "Invalid API key"
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')