Spaces:
Runtime error
Runtime error
reallynicejam
commited on
Commit
•
070da69
1
Parent(s):
49dc272
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
gr.load("models/facebook/xm_transformer_s2ut_hk-en").launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
def pass_audio(audio):
|
3 |
+
return audio
|
4 |
|
5 |
+
gr.Interface(
|
6 |
+
fn=pass_audio,
|
7 |
+
inputs=gr.Audio(source="microphone", type="file", label="Speak something"),
|
8 |
+
outputs=gr.Audio(type="file", label="Your Recorded Audio"),
|
9 |
+
live=True
|
10 |
+
).launch()
|
11 |
gr.load("models/facebook/xm_transformer_s2ut_hk-en").launch()
|