Spaces:
Running
on
Zero
Running
on
Zero
clement-pages
commited on
Commit
·
5e6b18d
1
Parent(s):
1aeab1b
update app
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def apply_pipeline(audio):
|
|
| 13 |
pipeline.to(torch.device("cuda"))
|
| 14 |
annotations = pipeline(audio)
|
| 15 |
|
| 16 |
-
return ((audio, annotations),
|
| 17 |
|
| 18 |
|
| 19 |
def update_annotations(data):
|
|
@@ -75,6 +75,12 @@ with gr.Blocks() as demo:
|
|
| 75 |
postprocess=False,
|
| 76 |
)
|
| 77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
if __name__ == "__main__":
|
| 80 |
demo.launch()
|
|
|
|
| 13 |
pipeline.to(torch.device("cuda"))
|
| 14 |
annotations = pipeline(audio)
|
| 15 |
|
| 16 |
+
return ((audio, annotations), annotations)
|
| 17 |
|
| 18 |
|
| 19 |
def update_annotations(data):
|
|
|
|
| 75 |
postprocess=False,
|
| 76 |
)
|
| 77 |
|
| 78 |
+
rttm.upload(
|
| 79 |
+
fn=audio_labeling.load_annotations,
|
| 80 |
+
inputs=[audio_labeling, rttm],
|
| 81 |
+
outputs=audio_labeling,
|
| 82 |
+
)
|
| 83 |
+
|
| 84 |
|
| 85 |
if __name__ == "__main__":
|
| 86 |
demo.launch()
|