Spaces:
Runtime error
Runtime error
Commit
·
3146d76
1
Parent(s):
e1f20c0
Fix runtime error: Remove examples causing FileNotFoundError
Browse files- Remove gr.Examples section that referenced non-existent audio file
- Update Gradio SDK version to 4.44.1 (latest available)
- Pin Gradio version in requirements.txt
- Add scipy dependency for librosa
- README.md +1 -1
- app.py +1 -7
- requirements.txt +3 -2
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🎙️
|
|
4 |
colorFrom: blue
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
-
sdk_version: "4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
+
sdk_version: "4.44.1"
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
app.py
CHANGED
@@ -96,13 +96,7 @@ with gr.Blocks(title="Wav2Vec2 XLS-R 1B Portuguese") as demo:
|
|
96 |
outputs=[output_text, transcription_output]
|
97 |
)
|
98 |
|
99 |
-
|
100 |
-
examples=[
|
101 |
-
["example_audio.wav"],
|
102 |
-
],
|
103 |
-
inputs=[audio_input],
|
104 |
-
cache_examples=False
|
105 |
-
)
|
106 |
|
107 |
# Launch the app - let Hugging Face Spaces handle the configuration
|
108 |
if __name__ == "__main__":
|
|
|
96 |
outputs=[output_text, transcription_output]
|
97 |
)
|
98 |
|
99 |
+
# Examples section removed - was causing FileNotFoundError
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
# Launch the app - let Hugging Face Spaces handle the configuration
|
102 |
if __name__ == "__main__":
|
requirements.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
-
gradio
|
2 |
transformers
|
3 |
torch
|
4 |
torchaudio
|
5 |
librosa
|
6 |
-
numpy
|
|
|
|
1 |
+
gradio==4.44.1
|
2 |
transformers
|
3 |
torch
|
4 |
torchaudio
|
5 |
librosa
|
6 |
+
numpy
|
7 |
+
scipy
|