Spaces:
Sleeping
Sleeping
Commit ·
be8e17e
1
Parent(s): d73e784
Update: refactor and fix some error
Browse files- .python-version +1 -0
- README.md +4 -5
- app.py +1 -9
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.10
|
README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
| 1 |
---
|
| 2 |
title: Shan ASR Demo
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
license: cc
|
|
|
|
| 11 |
---
|
| 12 |
-
|
| 13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
title: Shan ASR Demo
|
| 3 |
+
emoji: 🎙️
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.9.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: cc-by-4.0
|
| 11 |
+
python_version: 3.10
|
| 12 |
---
|
|
|
|
|
|
app.py
CHANGED
|
@@ -71,9 +71,6 @@ def create_interface() -> gr.Blocks:
|
|
| 71 |
gr.Examples(
|
| 72 |
examples=ASR_EXAMPLES,
|
| 73 |
inputs=[model_dropdown, audio_source, mic_input, file_input],
|
| 74 |
-
outputs=output_text,
|
| 75 |
-
fn=transcribe,
|
| 76 |
-
cache_examples=False,
|
| 77 |
)
|
| 78 |
|
| 79 |
# Information section
|
|
@@ -122,9 +119,4 @@ def create_interface() -> gr.Blocks:
|
|
| 122 |
|
| 123 |
if __name__ == "__main__":
|
| 124 |
demo = create_interface()
|
| 125 |
-
demo.launch(
|
| 126 |
-
server_name="0.0.0.0",
|
| 127 |
-
server_port=7860,
|
| 128 |
-
show_error=True,
|
| 129 |
-
quiet=False
|
| 130 |
-
)
|
|
|
|
| 71 |
gr.Examples(
|
| 72 |
examples=ASR_EXAMPLES,
|
| 73 |
inputs=[model_dropdown, audio_source, mic_input, file_input],
|
|
|
|
|
|
|
|
|
|
| 74 |
)
|
| 75 |
|
| 76 |
# Information section
|
|
|
|
| 119 |
|
| 120 |
if __name__ == "__main__":
|
| 121 |
demo = create_interface()
|
| 122 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|