nakas commited on
Commit
e66b829
Β·
1 Parent(s): 1bbe48d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -4,13 +4,11 @@ from audio_style_transfer.models import timedomain
4
  def audioStyleTransfer(content,style):
5
  print (style,content)
6
  output = "/tmp/outputfile.wav"
7
- timedomain.run( style_fname=style, content_fname=content ,output_fname=output, n_fft=4096,
8
- n_filters=4096,
9
- hop_length=512,
10
- alpha=0.05,
11
- k_w=4)
12
  print ("output is " ,output)
13
  return output
14
 
15
- iface = gr.Interface(fn=audioStyleTransfer, inputs=[gr.Audio(source="upload",type="filepath",label="Content"),gr.Audio(source="upload",type="filepath",label="Style")], outputs=gr.Audio(label="Output"))
 
 
16
  iface.launch()
 
4
  def audioStyleTransfer(content,style):
5
  print (style,content)
6
  output = "/tmp/outputfile.wav"
7
+ timedomain.run( style_fname=style, content_fname=content ,output_fname=output)
 
 
 
 
8
  print ("output is " ,output)
9
  return output
10
 
11
+ iface = gr.Interface(fn=audioStyleTransfer, title="Time Domain Audio Style transfer",
12
+ description="Forked from https://github.com/pkmital/time-domain-neural-audio-style-transfer Built to style transfer to audio using style audio.\
13
+ it seems to work best for shorter clips", inputs=[gr.Audio(source="upload",type="filepath",label="Content"),gr.Audio(source="upload",type="filepath",label="Style")], outputs=gr.Audio(label="Output"))
14
  iface.launch()