Spaces:
Running on Zero
Running on Zero
Add dedicated SheetSage2 ZeroGPU engine and Score Studio OAuth metadata
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ MODEL = AutoModel.from_pretrained(
|
|
| 30 |
subprocess.run([sys.executable, "-m", "playwright", "install", "--only-shell", "chromium"], check=True)
|
| 31 |
|
| 32 |
|
| 33 |
-
def gpu_seconds(audio, start, duration, melody_only, piano, **kwargs):
|
| 34 |
# Short excerpts should fit visitor quotas instead of reserving five minutes.
|
| 35 |
return max(45, min(300, int(float(duration) * 0.4) + 30))
|
| 36 |
|
|
|
|
| 30 |
subprocess.run([sys.executable, "-m", "playwright", "install", "--only-shell", "chromium"], check=True)
|
| 31 |
|
| 32 |
|
| 33 |
+
def gpu_seconds(audio, start, duration, melody_only, piano, progress=None, **kwargs):
|
| 34 |
# Short excerpts should fit visitor quotas instead of reserving five minutes.
|
| 35 |
return max(45, min(300, int(float(duration) * 0.4) + 30))
|
| 36 |
|