Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ def stream(session_id: str) -> str:
|
|
| 130 |
aset = set(active)
|
| 131 |
notes = [8 if i in aset else -1 for i in range(128)] # held pitch -> active token
|
| 132 |
cfgs = [discretize_cfg(c.get("cfg_musiccoca", 3.0), 0.2, 40),
|
| 133 |
-
discretize_cfg(c.get("cfg_notes",
|
| 134 |
cond = model._conditioning((list(tokens) + [-1] * model.num_musiccoca)[:model.num_musiccoca],
|
| 135 |
notes, drums, cfgs)
|
| 136 |
source = model.model.encode(cond).to(dt)
|
|
|
|
| 130 |
aset = set(active)
|
| 131 |
notes = [8 if i in aset else -1 for i in range(128)] # held pitch -> active token
|
| 132 |
cfgs = [discretize_cfg(c.get("cfg_musiccoca", 3.0), 0.2, 40),
|
| 133 |
+
discretize_cfg(c.get("cfg_notes", 2.4), 0.2, 40), discretize_cfg(1.0, 1.0, 8)]
|
| 134 |
cond = model._conditioning((list(tokens) + [-1] * model.num_musiccoca)[:model.num_musiccoca],
|
| 135 |
notes, drums, cfgs)
|
| 136 |
source = model.model.encode(cond).to(dt)
|