Spaces:
Build error
Build error
Update app.py (#9)
Browse files- Update app.py (e169fcfea2d3065acb4ff118c434b78da4bb0d78)
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:
|