paulpeyret-biophonia commited on
Commit
26f8d56
·
1 Parent(s): 82b8273

fix for linux execution

Browse files
app.py CHANGED
@@ -21,7 +21,7 @@ model_path = os.path.join(DATADIR, "ia_data/")
21
 
22
  # change directory to the dataset where our
23
  # custom scripts are found
24
- os.chdir(os.path.join(model_path, "code"))
25
  from ia_model_utils import *
26
 
27
  # reset our working directory
@@ -127,13 +127,13 @@ def end2endpipeline(wav_path):
127
 
128
  demo = gradio.Interface(
129
  fn=end2endpipeline,
130
- inputs=gradio.Audio(source="upload", type="filepath"),
131
  outputs=[gradio.File(), gradio.Textbox(interactive=False)],
132
  **interface_options,
133
  )
134
 
135
  launch_options = {
136
- "enable_queue": True,
137
  # "share": True,
138
  "inline": True,
139
  # "cache_examples": True,
 
21
 
22
  # change directory to the dataset where our
23
  # custom scripts are found
24
+ #os.chdir(os.path.join(model_path, "code"))
25
  from ia_model_utils import *
26
 
27
  # reset our working directory
 
127
 
128
  demo = gradio.Interface(
129
  fn=end2endpipeline,
130
+ inputs=gradio.Audio(sources="upload", type="filepath"),
131
  outputs=[gradio.File(), gradio.Textbox(interactive=False)],
132
  **interface_options,
133
  )
134
 
135
  launch_options = {
136
+ #"enable_queue": True,
137
  # "share": True,
138
  "inline": True,
139
  # "cache_examples": True,
args → ia_data/args RENAMED
File without changes
bird_dict.json → ia_data/bird_dict.json RENAMED
File without changes
log_file → ia_data/log_file RENAMED
File without changes
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ