clement-pages commited on
Commit
c81c952
·
1 Parent(s): 659de25

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ from pyannote.audio import Pipeline
6
  import os
7
  import torch
8
 
9
- @spaces.GPU(duration=300)
10
  def apply_pipeline(audio):
11
  """Apply specified pipeline on the indicated audio file"""
12
  pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization-3.1", use_auth_token=os.environ["HF_TOKEN"])
@@ -19,7 +19,7 @@ def apply_pipeline(audio):
19
  def update_annotations(data):
20
  return rttm.on_edit(data)
21
 
22
-
23
  with gr.Blocks() as demo:
24
  with gr.Row():
25
  with gr.Column():
 
6
  import os
7
  import torch
8
 
9
+ @spaces.GPU(duration=120)
10
  def apply_pipeline(audio):
11
  """Apply specified pipeline on the indicated audio file"""
12
  pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization-3.1", use_auth_token=os.environ["HF_TOKEN"])
 
19
  def update_annotations(data):
20
  return rttm.on_edit(data)
21
 
22
+
23
  with gr.Blocks() as demo:
24
  with gr.Row():
25
  with gr.Column():