Spaces:
Runtime error
Runtime error
Commit
·
ccbf183
1
Parent(s):
561cfe3
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import io
|
|
11 |
#Image-to-text endpoint
|
12 |
def get_completion(inputs, parameters=None, ENDPOINT_URL="http://internal-aws-prod-internal-revproxy-alb-11660607.us-west-1.elb.amazonaws.com/rev-proxy/huggingface/itt"]):
|
13 |
headers = {
|
14 |
-
"Authorization": f"Bearer {
|
15 |
"Content-Type": "application/json"
|
16 |
}
|
17 |
data = { "inputs": inputs }
|
|
|
11 |
#Image-to-text endpoint
|
12 |
def get_completion(inputs, parameters=None, ENDPOINT_URL="http://internal-aws-prod-internal-revproxy-alb-11660607.us-west-1.elb.amazonaws.com/rev-proxy/huggingface/itt"]):
|
13 |
headers = {
|
14 |
+
"Authorization": f"Bearer {HF_TOKENS}",
|
15 |
"Content-Type": "application/json"
|
16 |
}
|
17 |
data = { "inputs": inputs }
|