Update app.py
Browse files
app.py
CHANGED
|
@@ -28,10 +28,10 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 28 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
| 29 |
|
| 30 |
# Configuration for model download and conversion
|
| 31 |
-
OLMOASR_REPO = "
|
| 32 |
-
CHECKPOINT_FILENAME = "
|
| 33 |
LOCAL_CHECKPOINT_DIR = "checkpoints"
|
| 34 |
-
HF_MODEL_DIR = "checkpoints/
|
| 35 |
|
| 36 |
|
| 37 |
def ensure_checkpoint_dir():
|
|
|
|
| 28 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
| 29 |
|
| 30 |
# Configuration for model download and conversion
|
| 31 |
+
OLMOASR_REPO = "allenai/OLMoASR" # Temporary model link as requested
|
| 32 |
+
CHECKPOINT_FILENAME = "OLMoASR-tiny.en.pt" # Adjust based on actual filename in the repo
|
| 33 |
LOCAL_CHECKPOINT_DIR = "checkpoints"
|
| 34 |
+
HF_MODEL_DIR = "checkpoints/tiny_hf_converted"
|
| 35 |
|
| 36 |
|
| 37 |
def ensure_checkpoint_dir():
|