Spaces:
Running
Running
Commit
·
cb966cc
1
Parent(s):
d823e4a
Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -57,8 +57,8 @@
|
|
57 |
credentials: { accessToken: HF_ACCESS_TOKEN },
|
58 |
});
|
59 |
} catch (error) {
|
60 |
-
// If the repo already exists
|
61 |
-
if (error.message
|
62 |
console.log('Repository already exists, proceeding to upload files');
|
63 |
} else {
|
64 |
console.error('Error creating repository', error);
|
|
|
57 |
credentials: { accessToken: HF_ACCESS_TOKEN },
|
58 |
});
|
59 |
} catch (error) {
|
60 |
+
// If the repo already exists, we simply log and continue
|
61 |
+
if (error.message === 'You already created this model repo') {
|
62 |
console.log('Repository already exists, proceeding to upload files');
|
63 |
} else {
|
64 |
console.error('Error creating repository', error);
|