Spaces:
Runtime error
Runtime error
Update app_onnx.py
Browse files- app_onnx.py +0 -2
app_onnx.py
CHANGED
|
@@ -20,8 +20,6 @@ from midi_tokenizer import MIDITokenizer
|
|
| 20 |
MAX_SEED = np.iinfo(np.int32).max
|
| 21 |
in_space = os.getenv("SYSTEM") == "spaces"
|
| 22 |
|
| 23 |
-
login(token=hf_token) # Get token from huggingface.co/settings/tokens
|
| 24 |
-
|
| 25 |
def softmax(x, axis):
|
| 26 |
x_max = np.amax(x, axis=axis, keepdims=True)
|
| 27 |
exp_x_shifted = np.exp(x - x_max)
|
|
|
|
| 20 |
MAX_SEED = np.iinfo(np.int32).max
|
| 21 |
in_space = os.getenv("SYSTEM") == "spaces"
|
| 22 |
|
|
|
|
|
|
|
| 23 |
def softmax(x, axis):
|
| 24 |
x_max = np.amax(x, axis=axis, keepdims=True)
|
| 25 |
exp_x_shifted = np.exp(x - x_max)
|