Update app.py
Browse files
app.py
CHANGED
|
@@ -18,14 +18,14 @@ local_path = "hf_model"
|
|
| 18 |
model_version = "v1687590401"
|
| 19 |
model_repo_id = "chansung/kerasnlp-gpt2-alpaca-pipeline"
|
| 20 |
model_repo_url = f"https://huggingface.co/{model_repo_id}"
|
| 21 |
-
|
| 22 |
def _clone_and_checkout(repo_url: str, local_path: str, version: str) -> Repository:
|
| 23 |
repository = Repository(
|
| 24 |
local_dir=local_path, clone_from=repo_url
|
| 25 |
)
|
| 26 |
repository.git_checkout(revision=version)
|
| 27 |
return repository
|
| 28 |
-
|
| 29 |
# _ = _clone_and_checkout(model_repo_url, local_path, model_version)
|
| 30 |
# model = tf.saved_model.load(local_path, tags=[tag_constants.SERVING])
|
| 31 |
# gpt_lm_predict_fn = model.signatures["serving_default"]
|
|
|
|
| 18 |
model_version = "v1687590401"
|
| 19 |
model_repo_id = "chansung/kerasnlp-gpt2-alpaca-pipeline"
|
| 20 |
model_repo_url = f"https://huggingface.co/{model_repo_id}"
|
| 21 |
+
"""
|
| 22 |
def _clone_and_checkout(repo_url: str, local_path: str, version: str) -> Repository:
|
| 23 |
repository = Repository(
|
| 24 |
local_dir=local_path, clone_from=repo_url
|
| 25 |
)
|
| 26 |
repository.git_checkout(revision=version)
|
| 27 |
return repository
|
| 28 |
+
"""
|
| 29 |
# _ = _clone_and_checkout(model_repo_url, local_path, model_version)
|
| 30 |
# model = tf.saved_model.load(local_path, tags=[tag_constants.SERVING])
|
| 31 |
# gpt_lm_predict_fn = model.signatures["serving_default"]
|