Spaces:
Runtime error
Runtime error
fendiprime
commited on
Commit
•
cdbc823
1
Parent(s):
a8d7adc
Fix model source URL
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ add_vit_config(cfg)
|
|
26 |
cfg.merge_from_file("cascade_dit_base.yml")
|
27 |
|
28 |
# Step 2: add model weights URL to config
|
29 |
-
cfg.MODEL.WEIGHTS = "https://layoutlm.blob.core.windows.net/dit/dit-fts/publaynet_dit-b_cascade.pth"
|
30 |
|
31 |
# Step 3: set device
|
32 |
cfg.MODEL.DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
26 |
cfg.merge_from_file("cascade_dit_base.yml")
|
27 |
|
28 |
# Step 2: add model weights URL to config
|
29 |
+
cfg.MODEL.WEIGHTS = "https://layoutlm.blob.core.windows.net/dit/dit-fts/publaynet_dit-b_cascade.pth?sv=2022-11-02&ss=b&srt=o&sp=r&se=2033-06-08T16:48:15Z&st=2023-06-08T08:48:15Z&spr=https&sig=a9VXrihTzbWyVfaIDlIT1Z0FoR1073VB0RLQUMuudD4%3D"
|
30 |
|
31 |
# Step 3: set device
|
32 |
cfg.MODEL.DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|