echarlaix HF staff commited on
Commit
6d3a085
1 Parent(s): d198aee
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -90,7 +90,7 @@ def export(model_id: str, private_repo: bool, overwritte: bool, oauth_token: gr.
90
 
91
  api = HfApi(token=oauth_token.token)
92
  if api.repo_exists(new_repo_id) and not overwritte:
93
- return f"Model {new_repo_id} already exist, please set overwritte=True to push on an existing repo"
94
 
95
  with TemporaryDirectory() as d:
96
  folder = os.path.join(d, repo_folder_name(repo_id=model_id, repo_type="models"))
@@ -137,6 +137,7 @@ def export(model_id: str, private_repo: bool, overwritte: bool, oauth_token: gr.
137
  if card.data.tags is None:
138
  card.data.tags = []
139
  card.data.tags.append("openvino")
 
140
  card.data.base_model = model_id
141
  card.text = dedent(
142
  f"""
 
90
 
91
  api = HfApi(token=oauth_token.token)
92
  if api.repo_exists(new_repo_id) and not overwritte:
93
+ return f"Model {new_repo_id} already exist, please tick the overwritte box to push on an existing repository"
94
 
95
  with TemporaryDirectory() as d:
96
  folder = os.path.join(d, repo_folder_name(repo_id=model_id, repo_type="models"))
 
137
  if card.data.tags is None:
138
  card.data.tags = []
139
  card.data.tags.append("openvino")
140
+ card.data.tags.append("openvino-export")
141
  card.data.base_model = model_id
142
  card.text = dedent(
143
  f"""