Spaces:
Sleeping
Sleeping
Update app and requiremnts
Browse files- app.py +4 -4
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
import ast
|
| 2 |
import shutil
|
| 3 |
import gradio as gr
|
| 4 |
-
import numpy as np
|
| 5 |
-
from matplotlib import pyplot as plt
|
| 6 |
from mido import Message, MidiFile, MidiTrack
|
| 7 |
import os
|
| 8 |
import subprocess
|
| 9 |
from music21 import converter, note
|
| 10 |
-
from pydub import AudioSegment
|
| 11 |
import hexachords
|
| 12 |
from format_conversions import Format_Converter
|
| 13 |
import verovio
|
|
@@ -268,7 +268,7 @@ def launch_app():
|
|
| 268 |
hex.is_fsynth_installed()
|
| 269 |
hex.render()
|
| 270 |
if hex.on_huggingface:
|
| 271 |
-
hex.ui.launch(server_name="0.0.0.0", server_port=7860)
|
| 272 |
else:
|
| 273 |
hex.ui.launch(server_name="0.0.0.0", server_port=7860)
|
| 274 |
|
|
|
|
| 1 |
import ast
|
| 2 |
import shutil
|
| 3 |
import gradio as gr
|
| 4 |
+
# import numpy as np
|
| 5 |
+
# from matplotlib import pyplot as plt
|
| 6 |
from mido import Message, MidiFile, MidiTrack
|
| 7 |
import os
|
| 8 |
import subprocess
|
| 9 |
from music21 import converter, note
|
| 10 |
+
# from pydub import AudioSegment
|
| 11 |
import hexachords
|
| 12 |
from format_conversions import Format_Converter
|
| 13 |
import verovio
|
|
|
|
| 268 |
hex.is_fsynth_installed()
|
| 269 |
hex.render()
|
| 270 |
if hex.on_huggingface:
|
| 271 |
+
hex.ui.launch(server_name="0.0.0.0", server_port=7860, share=True)
|
| 272 |
else:
|
| 273 |
hex.ui.launch(server_name="0.0.0.0", server_port=7860)
|
| 274 |
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
verovio~=5.1.0
|
| 2 |
music21~=9.5.0
|
| 3 |
-
gradio
|
| 4 |
mido~=1.3.3
|
| 5 |
ortools~=9.12.4544
|
|
|
|
| 1 |
verovio~=5.1.0
|
| 2 |
music21~=9.5.0
|
| 3 |
+
gradio==5.23.2
|
| 4 |
mido~=1.3.3
|
| 5 |
ortools~=9.12.4544
|