Spaces:
Runtime error
Runtime error
shigeru saito
commited on
Commit
•
c631eaa
1
Parent(s):
7632937
MusicGenがMax 30秒制限
Browse files
app.py
CHANGED
@@ -254,7 +254,8 @@ class ThreadController:
|
|
254 |
self.threads = []
|
255 |
self.lock = threading.Lock()
|
256 |
self.replicate_client_list = {}
|
257 |
-
|
|
|
258 |
|
259 |
os.makedirs(f"assets/{self.id}", exist_ok=True)
|
260 |
|
|
|
254 |
self.threads = []
|
255 |
self.lock = threading.Lock()
|
256 |
self.replicate_client_list = {}
|
257 |
+
# 2.1秒 * シーン数 * APIトークン数 ただし30秒を超える場合は30秒にする
|
258 |
+
self.duration = int(2.1 * len(scenes) * len(REPLICATE_API_TOKEN_LIST)) if int(2.1 * len(scenes) * len(REPLICATE_API_TOKEN_LIST)) < 30 else 30
|
259 |
|
260 |
os.makedirs(f"assets/{self.id}", exist_ok=True)
|
261 |
|