Kvikontent commited on
Commit
06e6880
·
verified ·
1 Parent(s): a397059

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ api_token = os.environ.get("api_token")
18
  headers = {"Authorization": f"Bearer {api_token}"}
19
 
20
  def blip_query(filename):
21
- with open(filename, "rb") as f:
22
  data = f.read()
23
  response = requests.post(API_URL_BLIP, headers=headers, data=data)
24
  return response.json()
 
18
  headers = {"Authorization": f"Bearer {api_token}"}
19
 
20
  def blip_query(filename):
21
+ with open(filename,'rb') as f:
22
  data = f.read()
23
  response = requests.post(API_URL_BLIP, headers=headers, data=data)
24
  return response.json()