visakh7843 commited on
Commit
96addd2
1 Parent(s): 2a6e99c

heroku deployment setup

Browse files
Files changed (3) hide show
  1. Procfile +1 -0
  2. app.py +2 -2
  3. setup.sh +2 -0
Procfile ADDED
@@ -0,0 +1 @@
 
 
1
+ web: source setup.sh && python app.py
app.py CHANGED
@@ -5,8 +5,8 @@ import os
5
  keysignature = ["C","G","D","No selection"]
6
  difficulty = ["beginner","intermediate","expert"]
7
  timesignature = ['3/4','4/4','1/8','C|']
8
- os.system("apt-get install lilypond")
9
- os.system("apt-get install fluidsynth")
10
 
11
  interface = gr.Interface(fn = music_gen,
12
  inputs=[gr.Radio(difficulty,label="Difficulty"),
 
5
  keysignature = ["C","G","D","No selection"]
6
  difficulty = ["beginner","intermediate","expert"]
7
  timesignature = ['3/4','4/4','1/8','C|']
8
+ # os.system("apt-get install lilypond")
9
+ # os.system("apt-get install fluidsynth")
10
 
11
  interface = gr.Interface(fn = music_gen,
12
  inputs=[gr.Radio(difficulty,label="Difficulty"),
setup.sh ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export GRADIO_SERVER_NAME=0.0.0.0
2
+ export GRADIO_SERVER_PORT="$PORT"