Spaces:
Runtime error
Runtime error
Commit
·
c343c55
1
Parent(s):
9d65325
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ with open('credentials.json', 'w') as f:
|
|
| 40 |
|
| 41 |
|
| 42 |
title = '🎵 Annotate audio'
|
| 43 |
-
description = '''Choose a sentence that describes audio the best
|
| 44 |
|
| 45 |
audio_dir = 'AUDIO'
|
| 46 |
os.makedirs(audio_dir, exist_ok=True)
|
|
@@ -87,7 +87,7 @@ iface = gr.Interface(
|
|
| 87 |
gr.CheckboxGroup(sibling_elems, label='sibling elements text'),
|
| 88 |
gr.CheckboxGroup(label='page title', choices=[page_title]),
|
| 89 |
gr.CheckboxGroup([audio_meta], label='audio metadata'),
|
| 90 |
-
gr.Audio(audio_path, type="filepath"),
|
| 91 |
gr.Textbox(label='please enter your name'),
|
| 92 |
gr.Textbox(value=audio_url, visible=False)
|
| 93 |
],
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
title = '🎵 Annotate audio'
|
| 43 |
+
description = '''Choose a sentence (or sentences) that describes audio the best.'''
|
| 44 |
|
| 45 |
audio_dir = 'AUDIO'
|
| 46 |
os.makedirs(audio_dir, exist_ok=True)
|
|
|
|
| 87 |
gr.CheckboxGroup(sibling_elems, label='sibling elements text'),
|
| 88 |
gr.CheckboxGroup(label='page title', choices=[page_title]),
|
| 89 |
gr.CheckboxGroup([audio_meta], label='audio metadata'),
|
| 90 |
+
gr.Audio(audio_path, type="filepath", interactive=False),
|
| 91 |
gr.Textbox(label='please enter your name'),
|
| 92 |
gr.Textbox(value=audio_url, visible=False)
|
| 93 |
],
|