Spaces:
Runtime error
Runtime error
Davidsamuel101
commited on
Commit
·
efe3426
1
Parent(s):
8097d61
SliderName
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ with gr.Blocks() as demo:
|
|
78 |
audio = gr.Audio(type="filepath")
|
79 |
radio = gr.Radio(["silence", "word_overlap"], label="Select Segmentation Method", required=True)
|
80 |
model = gr.Dropdown(["facebook/wav2vec2-base-960h", "bookbot/wav2vec-en", "bookbot/wav2vec-id"], value="facebook/wav2vec2-base-960h", label="Select Model")
|
81 |
-
slider = gr.Slider(0, 100, value=3, step=0.1, visible=False)
|
82 |
gt = gr.Textbox(label="Ground Truth", placeholder="Enter Ground Truth Text", interactive=True, visible=False)
|
83 |
|
84 |
radio.change(fn=segmentation_interface, inputs=radio, outputs=[slider, gt])
|
|
|
78 |
audio = gr.Audio(type="filepath")
|
79 |
radio = gr.Radio(["silence", "word_overlap"], label="Select Segmentation Method", required=True)
|
80 |
model = gr.Dropdown(["facebook/wav2vec2-base-960h", "bookbot/wav2vec-en", "bookbot/wav2vec-id"], value="facebook/wav2vec2-base-960h", label="Select Model")
|
81 |
+
slider = gr.Slider(0, 100, value=3, step=0.1, label="silence duration", visible=False)
|
82 |
gt = gr.Textbox(label="Ground Truth", placeholder="Enter Ground Truth Text", interactive=True, visible=False)
|
83 |
|
84 |
radio.change(fn=segmentation_interface, inputs=radio, outputs=[slider, gt])
|