Spaces:
Runtime error
Runtime error
update app
Browse files
app.py
CHANGED
@@ -1,15 +1,16 @@
|
|
1 |
-
import gradio as gr
|
2 |
import os
|
|
|
|
|
|
|
3 |
import re
|
4 |
import subprocess
|
|
|
5 |
import time
|
6 |
from symusic import Score, Synthesizer
|
7 |
import torchaudio
|
8 |
import torch
|
9 |
|
10 |
# for rendering abc notation
|
11 |
-
os.environ['QT_QPA_PLATFORM']='offscreen'
|
12 |
-
|
13 |
default_abc = """
|
14 |
X:1
|
15 |
L:1/8
|
|
|
|
|
1 |
import os
|
2 |
+
os.environ['QT_QPA_PLATFORM']='offscreen'
|
3 |
+
os.environ['MPLCONFIGDIR'] = os.getcwd() + "/configs/"
|
4 |
+
|
5 |
import re
|
6 |
import subprocess
|
7 |
+
import gradio as gr
|
8 |
import time
|
9 |
from symusic import Score, Synthesizer
|
10 |
import torchaudio
|
11 |
import torch
|
12 |
|
13 |
# for rendering abc notation
|
|
|
|
|
14 |
default_abc = """
|
15 |
X:1
|
16 |
L:1/8
|