Spaces:
Running
Running
Disable unstable hf_transfer downloads
Browse files
app.py
CHANGED
|
@@ -3,6 +3,12 @@ import io
|
|
| 3 |
import json
|
| 4 |
import numpy
|
| 5 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
import pandas as pd
|
| 7 |
import piexif
|
| 8 |
import spaces
|
|
|
|
| 3 |
import json
|
| 4 |
import numpy
|
| 5 |
import os
|
| 6 |
+
|
| 7 |
+
# The accelerated transfer backend occasionally leaves Spaces trying to use an
|
| 8 |
+
# expired signed URL while downloading model weights. Disable it before any
|
| 9 |
+
# Hugging Face libraries are imported so downloads use the standard HTTP path.
|
| 10 |
+
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "0"
|
| 11 |
+
|
| 12 |
import pandas as pd
|
| 13 |
import piexif
|
| 14 |
import spaces
|