Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ from midi_synthesizer import MidiSynthesizer
|
|
18 |
|
19 |
MAX_SEED = np.iinfo(np.int32).max
|
20 |
in_space = os.getenv("SYSTEM") == "spaces"
|
21 |
-
|
22 |
|
23 |
@torch.inference_mode()
|
24 |
def generate(model: MIDIModel, prompt=None, max_len=512, temp=1.0, top_p=0.98, top_k=20,
|
|
|
18 |
|
19 |
MAX_SEED = np.iinfo(np.int32).max
|
20 |
in_space = os.getenv("SYSTEM") == "spaces"
|
21 |
+
np.random.seed()
|
22 |
|
23 |
@torch.inference_mode()
|
24 |
def generate(model: MIDIModel, prompt=None, max_len=512, temp=1.0, top_p=0.98, top_k=20,
|