Campfireman commited on
Commit
4835123
1 Parent(s): 6e983a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -70,5 +70,12 @@ def extrator_pipeline(url):
70
  temp_audio_addr = extract_audio()
71
  return notify
72
 
73
- demo = gr.Interface(fn=extrator_pipeline, inputs="text", outputs=gr.Audio(value = temp_audio_addr))
 
 
 
 
 
 
 
74
  demo.launch()
 
70
  temp_audio_addr = extract_audio()
71
  return notify
72
 
73
+ demo = gr.Interface(
74
+ fn=extrator_pipeline,
75
+ inputs="text",
76
+ outputs=gr.Audio(source = "upload"),
77
+ examples=[
78
+ [os.path.join(os.path.dirname(__file__),temp_audio_addr)]
79
+ ],
80
+ )
81
  demo.launch()