Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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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"
|