Xornotor commited on
Commit
3973eb2
1 Parent(s): b6dc2cb

Changed output order

Browse files
Files changed (4) hide show
  1. app.py +3 -3
  2. app_test.ipynb +3 -3
  3. cqfe_utils.py +2 -2
  4. pyproject.toml +1 -1
app.py CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
2
  from cqfe_utils import cqfe
3
  cqfe_interface = gr.Interface(fn=cqfe,
4
  inputs=gr.Audio(type='filepath', format='wav', label='Audio Input File'),
5
- outputs=[gr.Plot(label='F0 Estimation Plot'),
6
- gr.File(type='file', label='F0 Output Files')],
7
- title="Choral Quartets F0 Extractor (v0.1.2)",
8
  description="An application that uses Multi-Pitch Estimation and Voice Assignment to transform audio files with Choral Quartets recordings into files (CSV, HDF5 and MIDI) containing F0 estimations for each voice (Soprano, Alto, Tenor and Bass). The processing may take a few minutes.")
9
 
10
  cqfe_interface.launch()
 
2
  from cqfe_utils import cqfe
3
  cqfe_interface = gr.Interface(fn=cqfe,
4
  inputs=gr.Audio(type='filepath', format='wav', label='Audio Input File'),
5
+ outputs=[gr.File(type='file', label='F0 Output Files'),
6
+ gr.Plot(label='F0 Estimation Plot')],
7
+ title="Choral Quartets F0 Extractor (v0.1.2-alpha)",
8
  description="An application that uses Multi-Pitch Estimation and Voice Assignment to transform audio files with Choral Quartets recordings into files (CSV, HDF5 and MIDI) containing F0 estimations for each voice (Soprano, Alto, Tenor and Bass). The processing may take a few minutes.")
9
 
10
  cqfe_interface.launch()
app_test.ipynb CHANGED
@@ -69,9 +69,9 @@
69
  "from cqfe_utils import cqfe\n",
70
  "cqfe_interface = gr.Interface(fn=cqfe,\n",
71
  " inputs=gr.Audio(type='filepath', format='wav', label='Audio Input File'),\n",
72
- " outputs=[gr.Plot(label='F0 Estimation Plot'),\n",
73
- " gr.File(type='file', label='F0 Output Files')],\n",
74
- " title=\"Choral Quartets F0 Extractor (v0.1.2)\",\n",
75
  " description=\"An application that uses Multi-Pitch Estimation and Voice Assignment to transform audio files with Choral Quartets recordings into files (CSV, HDF5 and MIDI) containing F0 estimations for each voice (Soprano, Alto, Tenor and Bass). The processing may take a few minutes.\")\n",
76
  "\n",
77
  "cqfe_interface.launch()"
 
69
  "from cqfe_utils import cqfe\n",
70
  "cqfe_interface = gr.Interface(fn=cqfe,\n",
71
  " inputs=gr.Audio(type='filepath', format='wav', label='Audio Input File'),\n",
72
+ " outputs=[gr.File(type='file', label='F0 Output Files'),\n",
73
+ " gr.Plot(label='F0 Estimation Plot')],\n",
74
+ " title=\"Choral Quartets F0 Extractor (v0.1.2-alpha)\",\n",
75
  " description=\"An application that uses Multi-Pitch Estimation and Voice Assignment to transform audio files with Choral Quartets recordings into files (CSV, HDF5 and MIDI) containing F0 estimations for each voice (Soprano, Alto, Tenor and Bass). The processing may take a few minutes.\")\n",
76
  "\n",
77
  "cqfe_interface.launch()"
cqfe_utils.py CHANGED
@@ -299,8 +299,8 @@ def cqfe(audiofile, mpe=late_deep_cnn_model(), va=mask_voas_cnn_v2_model()):
299
  ax1.set_xlabel('Time (s)')
300
  ax1.set_ylabel('Freq (Hz)')
301
  fig = ax1.get_figure()
302
- fig.set_dpi(200)
303
 
304
- return fig, [output_midi, savepath_csv, savepath_hdf5]
305
 
306
  ############################################################
 
299
  ax1.set_xlabel('Time (s)')
300
  ax1.set_ylabel('Freq (Hz)')
301
  fig = ax1.get_figure()
302
+ fig.set_dpi(150)
303
 
304
+ return [output_midi, savepath_csv, savepath_hdf5], fig
305
 
306
  ############################################################
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
  [tool.poetry]
2
  name = "Choral-Quartets-F0-Extractor"
3
- version = "0.1.2"
4
  description = "An application that uses Multi-Pitch Estimation and Voice Assignment to transform audio files with Choral Quartets recordings into files (CSV, HDF5 and MIDI) containing F0 estimations for each voice (Soprano, Alto, Tenor and Bass)."
5
  authors = ["André Paiva (Xornotor) <[email protected]>"]
6
  license = "cc"
 
1
  [tool.poetry]
2
  name = "Choral-Quartets-F0-Extractor"
3
+ version = "0.1.2-alpha"
4
  description = "An application that uses Multi-Pitch Estimation and Voice Assignment to transform audio files with Choral Quartets recordings into files (CSV, HDF5 and MIDI) containing F0 estimations for each voice (Soprano, Alto, Tenor and Bass)."
5
  authors = ["André Paiva (Xornotor) <[email protected]>"]
6
  license = "cc"