Spaces:
Sleeping
Sleeping
Commit ·
3db53e9
1
Parent(s): 2b63154
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ load_dotenv(find_dotenv())
|
|
| 17 |
|
| 18 |
def handwriting_to_text(image):
|
| 19 |
API_URL = "https://api-inference.huggingface.co/models/microsoft/trocr-base-handwritten"
|
| 20 |
-
headers = {"Authorization": "Bearer
|
| 21 |
with open(image, "rb") as f:
|
| 22 |
data = f.read()
|
| 23 |
response = requests.post(API_URL, headers=headers, data=data)
|
|
|
|
| 17 |
|
| 18 |
def handwriting_to_text(image):
|
| 19 |
API_URL = "https://api-inference.huggingface.co/models/microsoft/trocr-base-handwritten"
|
| 20 |
+
headers = {"Authorization": "Bearer "}
|
| 21 |
with open(image, "rb") as f:
|
| 22 |
data = f.read()
|
| 23 |
response = requests.post(API_URL, headers=headers, data=data)
|