Spaces:
Sleeping
Sleeping
ahmad4raza
commited on
Commit
·
942040a
1
Parent(s):
9dc3dab
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ load_dotenv(find_dotenv())
|
|
15 |
|
16 |
def handwriting_to_text(image):
|
17 |
API_URL = "https://api-inference.huggingface.co/models/microsoft/trocr-base-handwritten"
|
18 |
-
headers = {"Authorization": "Bearer
|
19 |
with open(image, "rb") as f:
|
20 |
data = f.read()
|
21 |
response = requests.post(API_URL, headers=headers, data=data)
|
|
|
15 |
|
16 |
def handwriting_to_text(image):
|
17 |
API_URL = "https://api-inference.huggingface.co/models/microsoft/trocr-base-handwritten"
|
18 |
+
headers = {"Authorization": "Bearer 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}
|
19 |
with open(image, "rb") as f:
|
20 |
data = f.read()
|
21 |
response = requests.post(API_URL, headers=headers, data=data)
|