Spaces:
Runtime error
Runtime error
fix: use the correct order of lines
Browse files
app.py
CHANGED
@@ -24,6 +24,8 @@ NAME = ""
|
|
24 |
|
25 |
REVISION = "4f68dc3740b410835da71811d92bd3b2d690e79c"
|
26 |
|
|
|
|
|
27 |
if len(ENDPOINT)>0:
|
28 |
API_URL = f"{ENDPOINT}"
|
29 |
MODEL_VERSION = f"{ENDPOINT}" if len(REVISION)==0 else REVISION
|
@@ -36,8 +38,6 @@ else:
|
|
36 |
revision=REVISION)
|
37 |
MODEL_VERSION = model_repo.git_head_commit_url() if len(REVISION)==0 else REVISION
|
38 |
|
39 |
-
MODEL_REPO_URL = f"https://huggingface.co/{MODEL_NAME}"
|
40 |
-
|
41 |
DATA_FILENAME = "data.jsonl"
|
42 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
43 |
data_repo = Repository(local_dir="data",
|
|
|
24 |
|
25 |
REVISION = "4f68dc3740b410835da71811d92bd3b2d690e79c"
|
26 |
|
27 |
+
MODEL_REPO_URL = f"https://huggingface.co/{MODEL_NAME}"
|
28 |
+
|
29 |
if len(ENDPOINT)>0:
|
30 |
API_URL = f"{ENDPOINT}"
|
31 |
MODEL_VERSION = f"{ENDPOINT}" if len(REVISION)==0 else REVISION
|
|
|
38 |
revision=REVISION)
|
39 |
MODEL_VERSION = model_repo.git_head_commit_url() if len(REVISION)==0 else REVISION
|
40 |
|
|
|
|
|
41 |
DATA_FILENAME = "data.jsonl"
|
42 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
43 |
data_repo = Repository(local_dir="data",
|