Spaces:
Running
Running
Commit
•
053ba8a
1
Parent(s):
74f300a
Update app.py (#1)
Browse files- Update app.py (d913283373023f8d878b8b1147668fec87c21701)
Co-authored-by: Next <Nex432@users.noreply.huggingface.co>
app.py
CHANGED
@@ -174,12 +174,14 @@ def find_midi(title, artist):
|
|
174 |
#==========================================================================================================
|
175 |
|
176 |
if __name__ == "__main__":
|
177 |
-
parser =
|
178 |
parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
|
179 |
parser.add_argument("--port", type=int, default=7860, help="gradio server port")
|
180 |
-
parser.add_argument("--max-gen", type=int, default=1024, help="max")
|
181 |
|
182 |
opt = parser.parse_args()
|
|
|
|
|
183 |
|
184 |
soundfont_path = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
|
185 |
meta_data_path = "Giant_Music_Transformer_Aux_Data.pickle"
|
|
|
174 |
#==========================================================================================================
|
175 |
|
176 |
if __name__ == "__main__":
|
177 |
+
parser = ArgumentParser()
|
178 |
parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
|
179 |
parser.add_argument("--port", type=int, default=7860, help="gradio server port")
|
180 |
+
parser.add_argument("--max-gen", type=int, default=1024, help="max generation steps")
|
181 |
|
182 |
opt = parser.parse_args()
|
183 |
+
|
184 |
+
|
185 |
|
186 |
soundfont_path = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
|
187 |
meta_data_path = "Giant_Music_Transformer_Aux_Data.pickle"
|