Pranav0gp commited on
Commit
02ed10a
·
1 Parent(s): 8420057

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ API_URL = "https://api-inference.huggingface.co/models/Salesforce/blip-image-cap
2
 
3
  # Helper functions
4
  import requests, json
5
-
6
  #Image-to-text endpoint
7
  def get_completion(inputs, parameters=None, ENDPOINT_URL=API_URL):
8
  hf_api_key = "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"
 
2
 
3
  # Helper functions
4
  import requests, json
5
+ import io
6
  #Image-to-text endpoint
7
  def get_completion(inputs, parameters=None, ENDPOINT_URL=API_URL):
8
  hf_api_key = "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"