Spaces:
Running
Running
xiaoyunchong.xyc commited on
Commit ·
b023d15
1
Parent(s): 65831db
fix: upgrade gradio 5.23.0, disable @spaces.GPU for CPU mode
Browse files
README.md
CHANGED
|
@@ -4,11 +4,11 @@ emoji: 🚀
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 5.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
license: apache-2.0
|
| 11 |
-
|
| 12 |
short_description: "LLM-powered ASR: 31 languages, Chinese dialects, timestamps"
|
| 13 |
---
|
| 14 |
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.23.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
license: apache-2.0
|
| 11 |
+
|
| 12 |
short_description: "LLM-powered ASR: 31 languages, Chinese dialects, timestamps"
|
| 13 |
---
|
| 14 |
|
app.py
CHANGED
|
@@ -72,7 +72,7 @@ def get_model(pipeline_type):
|
|
| 72 |
return model
|
| 73 |
|
| 74 |
|
| 75 |
-
@spaces.GPU(duration=60)
|
| 76 |
def transcribe(audio_input, pipeline_type, language):
|
| 77 |
if audio_input is None:
|
| 78 |
return "Please upload an audio file or record via microphone.", ""
|
|
|
|
| 72 |
return model
|
| 73 |
|
| 74 |
|
| 75 |
+
# @spaces.GPU(duration=60) # disabled for CPU-only space
|
| 76 |
def transcribe(audio_input, pipeline_type, language):
|
| 77 |
if audio_input is None:
|
| 78 |
return "Please upload an audio file or record via microphone.", ""
|