Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ HF_TOKEN = os.environ.get("HF_WRITE_TOKEN")
|
|
19 |
DATADIR = "exporters_data"
|
20 |
|
21 |
repo: Optional[Repository] = None
|
22 |
-
if HF_TOKEN:
|
23 |
-
|
24 |
|
25 |
|
26 |
def onnx_export(token: str, model_id: str, task: str, opset: Union[int, str]) -> str:
|
|
|
19 |
DATADIR = "exporters_data"
|
20 |
|
21 |
repo: Optional[Repository] = None
|
22 |
+
# if HF_TOKEN:
|
23 |
+
# repo = Repository(local_dir=DATADIR, clone_from=DATASET_REPO_URL, token=HF_TOKEN)
|
24 |
|
25 |
|
26 |
def onnx_export(token: str, model_id: str, task: str, opset: Union[int, str]) -> str:
|