Spaces:
Sleeping
Sleeping
Commit
•
687343f
1
Parent(s):
d531709
fix
Browse files- app.py +4 -3
- requirements.txt +1 -1
app.py
CHANGED
@@ -171,9 +171,10 @@ def process_audio(audio: str, state: AppState):
|
|
171 |
|
172 |
with gr.Blocks() as demo:
|
173 |
with gr.Row():
|
174 |
-
|
175 |
-
|
176 |
-
|
|
|
177 |
state = gr.State(value=AppState())
|
178 |
|
179 |
input_audio.stream(process_audio, [input_audio, state], [output_audio, state],
|
|
|
171 |
|
172 |
with gr.Blocks() as demo:
|
173 |
with gr.Row():
|
174 |
+
with gr.Column():
|
175 |
+
input_audio = gr.Audio(label="Input Audio", sources="microphone", type="filepath")
|
176 |
+
with gr.Column():
|
177 |
+
output_audio = gr.Audio(label="Output Audio", streaming=True)
|
178 |
state = gr.State(value=AppState())
|
179 |
|
180 |
input_audio.stream(process_audio, [input_audio, state], [output_audio, state],
|
requirements.txt
CHANGED
@@ -11,7 +11,7 @@ streamlit==1.37.1
|
|
11 |
pydub==0.25.1
|
12 |
onnxruntime==1.19.0
|
13 |
# numpy==1.26.3
|
14 |
-
gradio
|
15 |
fastapi==0.112.4
|
16 |
librosa==0.10.2.post1
|
17 |
flask==3.0.3
|
|
|
11 |
pydub==0.25.1
|
12 |
onnxruntime==1.19.0
|
13 |
# numpy==1.26.3
|
14 |
+
https://gradio-builds.s3.amazonaws.com/5.0-dev/e2157efe20cdec2454b0b5d312fad00b2b5bfe1c/gradio-5.0.0b1-py3-none-any.whl
|
15 |
fastapi==0.112.4
|
16 |
librosa==0.10.2.post1
|
17 |
flask==3.0.3
|