Spaces:
Runtime error
Runtime error
fix: use git user
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ from gradio.helpers import special_args
|
|
73 |
from gradio.routes import Request
|
74 |
import anyio
|
75 |
|
76 |
-
from huggingface_hub import Repository, InferenceClient
|
77 |
from utils import force_git_push
|
78 |
|
79 |
from typing import (
|
@@ -120,6 +120,7 @@ else:
|
|
120 |
clone_from=MODEL_REPO_URL,
|
121 |
use_auth_token=HF_TOKEN,
|
122 |
skip_lfs_files=True,
|
|
|
123 |
revision=REVISION)
|
124 |
MODEL_VERSION = model_repo.git_head_commit_url() if len(REVISION)==0 else REVISION
|
125 |
|
|
|
73 |
from gradio.routes import Request
|
74 |
import anyio
|
75 |
|
76 |
+
from huggingface_hub import HfApi, Repository, InferenceClient
|
77 |
from utils import force_git_push
|
78 |
|
79 |
from typing import (
|
|
|
120 |
clone_from=MODEL_REPO_URL,
|
121 |
use_auth_token=HF_TOKEN,
|
122 |
skip_lfs_files=True,
|
123 |
+
git_user="vpcom",
|
124 |
revision=REVISION)
|
125 |
MODEL_VERSION = model_repo.git_head_commit_url() if len(REVISION)==0 else REVISION
|
126 |
|