Spaces:
Runtime error
Runtime error
alan
commited on
Commit
·
301cc6f
1
Parent(s):
6a925b7
update gradio
Browse files- app.py +2 -2
- requirements.txt +4 -1
app.py
CHANGED
|
@@ -279,13 +279,13 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 279 |
input_audio_mic = gr.Audio(
|
| 280 |
label="Input speech",
|
| 281 |
type="filepath",
|
| 282 |
-
|
| 283 |
visible=False,
|
| 284 |
)
|
| 285 |
input_audio_file = gr.Audio(
|
| 286 |
label="Input speech",
|
| 287 |
type="filepath",
|
| 288 |
-
|
| 289 |
visible=True,
|
| 290 |
)
|
| 291 |
input_text = gr.Textbox(label="Input text", visible=False)
|
|
|
|
| 279 |
input_audio_mic = gr.Audio(
|
| 280 |
label="Input speech",
|
| 281 |
type="filepath",
|
| 282 |
+
sources="microphone",
|
| 283 |
visible=False,
|
| 284 |
)
|
| 285 |
input_audio_file = gr.Audio(
|
| 286 |
label="Input speech",
|
| 287 |
type="filepath",
|
| 288 |
+
sources="upload",
|
| 289 |
visible=True,
|
| 290 |
)
|
| 291 |
input_text = gr.Textbox(label="Input text", visible=False)
|
requirements.txt
CHANGED
|
@@ -1,3 +1,6 @@
|
|
| 1 |
git+https://github.com/huggingface/transformers
|
| 2 |
torchaudio==2.0.2
|
| 3 |
-
sentencepiece
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
git+https://github.com/huggingface/transformers
|
| 2 |
torchaudio==2.0.2
|
| 3 |
+
sentencepiece
|
| 4 |
+
gradio
|
| 5 |
+
numpy==1.26.4
|
| 6 |
+
protobuf
|