Hannah
commited on
Commit
·
c213e8f
1
Parent(s):
1c5051a
test
Browse files- app.py +13 -0
- new-sax-1.mp3 +0 -0
- requirements.txt +1 -0
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
import gradio as gr
|
4 |
+
|
5 |
+
audio_file = os.path.join(os.path.dirname(__file__), "new-sax-1.mp3")
|
6 |
+
|
7 |
+
|
8 |
+
with gr.Blocks() as demo:
|
9 |
+
audio = gr.Audio(show_share_button=True)
|
10 |
+
btn = gr.Button()
|
11 |
+
audio2 = gr.Audio(show_share_button=True)
|
12 |
+
btn.click(fn=lambda x: x, inputs=audio, outputs=audio2)
|
13 |
+
demo.queue().launch()
|
new-sax-1.mp3
ADDED
Binary file (95.1 kB). View file
|
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
https://gradio-builds.s3.amazonaws.com/0931b5b5a350373e51ef8d6e8ba49124e3253efb/gradio-3.40.1-py3-none-any.whl
|