Spaces:
Running
Running
Commit
·
e30ba2f
1
Parent(s):
f1e7a1d
default
Browse files- app.py +6 -6
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -8,13 +8,13 @@ import os
|
|
| 8 |
import subprocess
|
| 9 |
import sys
|
| 10 |
|
| 11 |
-
# Ensure correct hub version before anything else
|
| 12 |
-
subprocess.run([sys.executable, "-m", "pip", "install", "--upgrade", "huggingface_hub==0.24.5"], check=True)
|
| 13 |
|
| 14 |
-
# Optional: safety patch
|
| 15 |
-
import huggingface_hub.constants as constants
|
| 16 |
-
if not hasattr(constants, "HF_HUB_ENABLE_HF_TRANSFER"):
|
| 17 |
-
|
| 18 |
|
| 19 |
GH_TOKEN = os.getenv("GH_TOKEN")
|
| 20 |
if GH_TOKEN:
|
|
|
|
| 8 |
import subprocess
|
| 9 |
import sys
|
| 10 |
|
| 11 |
+
# # Ensure correct hub version before anything else
|
| 12 |
+
# subprocess.run([sys.executable, "-m", "pip", "install", "--upgrade", "huggingface_hub==0.24.5"], check=True)
|
| 13 |
|
| 14 |
+
# # Optional: safety patch
|
| 15 |
+
# import huggingface_hub.constants as constants
|
| 16 |
+
# if not hasattr(constants, "HF_HUB_ENABLE_HF_TRANSFER"):
|
| 17 |
+
# constants.HF_HUB_ENABLE_HF_TRANSFER = False
|
| 18 |
|
| 19 |
GH_TOKEN = os.getenv("GH_TOKEN")
|
| 20 |
if GH_TOKEN:
|
requirements.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
gradio
|
|
|
|
| 1 |
+
gradio
|