Skip to content

Commit

Permalink
avoid hidden model
Browse files Browse the repository at this point in the history
  • Loading branch information
ctlllll committed Mar 29, 2024
1 parent e194ce5 commit ba1a846
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tts_subnet/upload_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,9 @@ async def main(config: bt.config):
bt.logging.success("Committed model to the chain.")
break
except Exception as e:
update_repo_visibility(
model_id.namespace + "/" + model_id.name,
private=True,
token=os.getenv("HF_ACCESS_TOKEN"),
)
bt.logging.error(f"Failed to advertise model on the chain: {e}")
bt.logging.error("Retrying in 60 seconds...")
time.sleep(60)
bt.logging.error("Retrying in 120 seconds...")
time.sleep(120)


if __name__ == "__main__":
Expand Down

0 comments on commit ba1a846

Please sign in to comment.