Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ import requests
|
|
| 15 |
# URLs for the model and encoder hosted on Hugging Face
|
| 16 |
MODEL_URL = "https://huggingface.co/sameernotes/hindi-ocr/resolve/main/hindi_ocr_model.keras"
|
| 17 |
ENCODER_URL = "https://huggingface.co/sameernotes/hindi-ocr/resolve/main/label_encoder.pkl"
|
| 18 |
-
FONT_URL = "https://
|
| 19 |
|
| 20 |
# Download model and encoder
|
| 21 |
def download_file(url, dest):
|
|
|
|
| 15 |
# URLs for the model and encoder hosted on Hugging Face
|
| 16 |
MODEL_URL = "https://huggingface.co/sameernotes/hindi-ocr/resolve/main/hindi_ocr_model.keras"
|
| 17 |
ENCODER_URL = "https://huggingface.co/sameernotes/hindi-ocr/resolve/main/label_encoder.pkl"
|
| 18 |
+
FONT_URL = "https://huggingface.co/sameernotes/hindi-ocr/resolve/main/NotoSansDevanagari-Regular.ttf" # Optional font
|
| 19 |
|
| 20 |
# Download model and encoder
|
| 21 |
def download_file(url, dest):
|