Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,15 +6,15 @@ import huggingface_hub
|
|
| 6 |
from huggingface_hub import Repository
|
| 7 |
from datetime import datetime
|
| 8 |
|
| 9 |
-
os.system('git config --global user.email "shubhamverma.sky@gmail.com"')
|
| 10 |
-
os.system('git config --global user.name "verma"')
|
| 11 |
|
| 12 |
DATASET_REPO_URL = "https://huggingface.co/datasets/Shubham89/Meshworks-datasets"
|
| 13 |
DATA_FILENAME = "data.csv"
|
| 14 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
|
| 19 |
print("hfh", huggingface_hub.__version__)
|
| 20 |
|
|
@@ -33,12 +33,11 @@ with open(os.path.join(gr.networking.STATIC_TEMPLATE_LIB, "frontend", "index.htm
|
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
-
#repo = Repository(
|
| 37 |
-
# local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
| 38 |
-
#)
|
| 39 |
-
|
| 40 |
repo = Repository(
|
| 41 |
-
local_dir="data", clone_from=DATASET_REPO_URL
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
def generate_html() -> str:
|
|
|
|
| 6 |
from huggingface_hub import Repository
|
| 7 |
from datetime import datetime
|
| 8 |
|
| 9 |
+
#os.system('git config --global user.email "shubhamverma.sky@gmail.com"')
|
| 10 |
+
#os.system('git config --global user.name "verma"')
|
| 11 |
|
| 12 |
DATASET_REPO_URL = "https://huggingface.co/datasets/Shubham89/Meshworks-datasets"
|
| 13 |
DATA_FILENAME = "data.csv"
|
| 14 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
| 15 |
|
| 16 |
+
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 17 |
+
print("is none?", HF_TOKEN is None)
|
| 18 |
|
| 19 |
print("hfh", huggingface_hub.__version__)
|
| 20 |
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
repo = Repository(
|
| 37 |
+
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
| 38 |
+
)
|
| 39 |
+
|
| 40 |
+
|
| 41 |
|
| 42 |
|
| 43 |
def generate_html() -> str:
|