Spaces:
Running
Running
update tfjs
Browse files
app.py
CHANGED
|
@@ -1567,11 +1567,8 @@ with gr.Blocks(
|
|
| 1567 |
# Transformers.js logic
|
| 1568 |
elif sdk_name == "Transformers.js":
|
| 1569 |
try:
|
| 1570 |
-
# Use duplicate_space to create a transformers.js template space
|
| 1571 |
-
|
| 1572 |
-
|
| 1573 |
-
# Duplicate the transformers.js template space
|
| 1574 |
-
duplicated_repo = duplicate_space(
|
| 1575 |
from_id="static-templates/transformers.js",
|
| 1576 |
to_id=space_name.strip(),
|
| 1577 |
token=token.token,
|
|
|
|
| 1567 |
# Transformers.js logic
|
| 1568 |
elif sdk_name == "Transformers.js":
|
| 1569 |
try:
|
| 1570 |
+
# Use HfApi().duplicate_space to create a transformers.js template space
|
| 1571 |
+
api.duplicate_space(
|
|
|
|
|
|
|
|
|
|
| 1572 |
from_id="static-templates/transformers.js",
|
| 1573 |
to_id=space_name.strip(),
|
| 1574 |
token=token.token,
|