Spaces:
Running on Zero
Running on Zero
Upload app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,8 @@ def asr_sys_inference(audio_file):
|
|
| 50 |
if not audio_file:
|
| 51 |
return "Please upload a wav file"
|
| 52 |
results = asr_system.process(audio_file)
|
| 53 |
-
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
@spaces.GPU(duration=20)
|
|
|
|
| 50 |
if not audio_file:
|
| 51 |
return "Please upload a wav file"
|
| 52 |
results = asr_system.process(audio_file)
|
| 53 |
+
s = f'ASR: {results["text"]}\nSentences: {results["sentences"]}\nVAD(ms): {results["vad_segments"]}'
|
| 54 |
+
return s
|
| 55 |
|
| 56 |
|
| 57 |
@spaces.GPU(duration=20)
|