Delik commited on
Commit
2129f6b
1 Parent(s): d42cced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -13,13 +13,16 @@ pipeline = Pipeline.from_pretrained(
13
 
14
 
15
 
16
- def greet(name, intensity):
17
- return "Hello, " + name + "!" * int(intensity)
 
 
18
 
19
- demo = gr.Interface(
20
- fn=greet,
21
- inputs=["text", "slider"],
22
- outputs=["text"],
23
- )
24
 
25
- demo.launch()
 
 
 
13
 
14
 
15
 
16
+ #def process_audio(audio):
17
+ # Your audio processing logic goes here
18
+ # For demonstration purposes, we'll just return the input audio
19
+ return audio
20
 
21
+ #with gr.Blocks() as demo:
22
+ audio_input = gr.Audio(label="Upload Audio", source="upload")
23
+ process_button = gr.Button("Process")
24
+ audio_output = gr.Audio(label="Processed Audio")
 
25
 
26
+ process_button.click(fn=process_audio, inputs=audio_input, outputs=audio_output)
27
+
28
+ demo.launch()