owiedotch commited on
Commit
9ddfe7b
·
verified ·
1 Parent(s): a2c4e76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -154,7 +154,9 @@ def inference(audio_file: str, model_name: str, vocals: bool, drums: bool, bass:
154
  title="Demucs Result",
155
  border_style="green"
156
  )
157
- yield output_file, list(stems.values()), gr.HTML(console.export_html(final_message))
 
 
158
 
159
  # Define the Gradio interface
160
  with gr.Blocks() as iface:
 
154
  title="Demucs Result",
155
  border_style="green"
156
  )
157
+ console = Console(record=True, width=80)
158
+ console.print(final_message)
159
+ yield output_file, list(stems.values()), gr.HTML(console.export_html())
160
 
161
  # Define the Gradio interface
162
  with gr.Blocks() as iface: