Commit
•
24452d6
1
Parent(s):
c8f1310
Update app.py
Browse files
app.py
CHANGED
@@ -251,7 +251,9 @@ Sample pictures of:
|
|
251 |
try:
|
252 |
create_repo(model_id,private=True, token=hf_token)
|
253 |
except:
|
254 |
-
|
|
|
|
|
255 |
operations = [
|
256 |
CommitOperationAdd(path_in_repo="token_identifier.txt", path_or_fileobj="token_identifier.txt"),
|
257 |
CommitOperationAdd(path_in_repo="README.md", path_or_fileobj="model.README.md"),
|
|
|
251 |
try:
|
252 |
create_repo(model_id,private=True, token=hf_token)
|
253 |
except:
|
254 |
+
import time
|
255 |
+
epoch_time = str(int(time.time()))
|
256 |
+
create_repo(f"{model_id}-{epoch_time}", private=True,token=hf_token)
|
257 |
operations = [
|
258 |
CommitOperationAdd(path_in_repo="token_identifier.txt", path_or_fileobj="token_identifier.txt"),
|
259 |
CommitOperationAdd(path_in_repo="README.md", path_or_fileobj="model.README.md"),
|