mizoru commited on
Commit
865b8d5
·
1 Parent(s): 4b0b51b
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -37,7 +37,10 @@ def main():
37
 
38
  with gr.Blocks() as demo:
39
  with gr.Row():
40
- gdrive_str = gr.Text("File ID")
 
 
 
41
  download_button = gr.Button("Download Audio")
42
 
43
  with gr.Row():
@@ -50,9 +53,9 @@ def main():
50
  button1.click(process_audio, inputs=[audio_input], outputs=figure)
51
 
52
  with gr.Row():
53
- threshold = gr.Number(label="Threshold", value=0.5, minimum=0.0, maximum=1.0)
54
- min_speech_duration_ms = gr.Number(label="Min Speech Duration (ms)", value=250)
55
- min_silence_duration_ms = gr.Number(label="Min Silence Duration (ms)", value=100)
56
  window_size_samples = gr.Dropdown(label="Window Size Samples", choices=[512, 1024, 1536], value=1536)
57
  speech_pad_ms = gr.Number(label="Speech Pad (ms)", value=30)
58
  button2 = gr.Button("Compute Speech Timestamps")
 
37
 
38
  with gr.Blocks() as demo:
39
  with gr.Row():
40
+ info = """Input the Google Drive file id from the shared link.
41
+ It comes after https://drive.google.com/file/d/ <id here.
42
+ For example the link https://drive.google.com/file/d/15C6aHry8sJr43r0EYPPrIlPjMWp6SDb8/view?usp=drive_link has id 15C6aHry8sJr43r0EYPPrIlPjMWp6SDb8"""
43
+ gdrive_str = gr.Text(label="File ID", info = info)
44
  download_button = gr.Button("Download Audio")
45
 
46
  with gr.Row():
 
53
  button1.click(process_audio, inputs=[audio_input], outputs=figure)
54
 
55
  with gr.Row():
56
+ threshold = gr.Number(label="Threshold", value=0.6, minimum=0.0, maximum=1.0)
57
+ min_speech_duration_ms = gr.Number(label="Min Speech Duration (ms)", value=10_000)
58
+ min_silence_duration_ms = gr.Number(label="Min Silence Duration (ms)", value=5_000)
59
  window_size_samples = gr.Dropdown(label="Window Size Samples", choices=[512, 1024, 1536], value=1536)
60
  speech_pad_ms = gr.Number(label="Speech Pad (ms)", value=30)
61
  button2 = gr.Button("Compute Speech Timestamps")