NeuralFalcon commited on
Commit
9f1c552
1 Parent(s): 2b4aa44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -167,13 +167,13 @@ def process_audio(audio_file):
167
  before=calculate_duration(audio_file)
168
  after=calculate_duration(output_audio_file)
169
  text=f"Duration before: {before:.2f} seconds, Duration after: {after:.2f} seconds"
170
- return output_audio_file,text
171
 
172
 
173
 
174
  demo = gr.Interface(process_audio,
175
  [gr.Audio(label="Upload Audio",type="filepath",sources=['upload', 'microphone'])],
176
- [gr.File(label="Download Audio File"),gr.Textbox(label="Duration")],
177
  cache_examples=True)
178
 
179
  demo.launch(debug=True)
 
167
  before=calculate_duration(audio_file)
168
  after=calculate_duration(output_audio_file)
169
  text=f"Duration before: {before:.2f} seconds, Duration after: {after:.2f} seconds"
170
+ return output_audio_file,output_audio_file,text
171
 
172
 
173
 
174
  demo = gr.Interface(process_audio,
175
  [gr.Audio(label="Upload Audio",type="filepath",sources=['upload', 'microphone'])],
176
+ [gr.Audio(label="Play Audio"),gr.File(label="Download Audio File"),gr.Textbox(label="Duration")],
177
  cache_examples=True)
178
 
179
  demo.launch(debug=True)