Spaces:
Sleeping
Sleeping
Spark Chou commited on
Commit ·
585029d
1
Parent(s): ff3866f
new
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ for item in dataset:
|
|
| 38 |
all_data_audio_paths = local_audio_paths
|
| 39 |
|
| 40 |
# Take first file of the datasets as sample
|
| 41 |
-
sample1_audio_path =
|
| 42 |
print(sample1_audio_path)
|
| 43 |
|
| 44 |
# ==============================================================================
|
|
@@ -883,8 +883,8 @@ with gr.Blocks(theme=gr.themes.Soft(), css=".gradio-container {max-width: 960px
|
|
| 883 |
sample_dimension_selector = gr.Radio(DIMENSION_TITLES, label="Select Learning Dimension", value=DIMENSION_TITLES[0])
|
| 884 |
with gr.Row():
|
| 885 |
with gr.Column(scale=1):
|
| 886 |
-
|
| 887 |
-
sample_audio = gr.Audio(label="Sample Audio", value=sample1_audio_path)
|
| 888 |
with gr.Column(scale=2):
|
| 889 |
with gr.Column(visible=True) as interactive_view:
|
| 890 |
gr.Markdown("#### Please rate the following features (0-5 points. 0 - Feature not present; 1 - Machine; 3 - Neutral; 5 - Human)")
|
|
|
|
| 38 |
all_data_audio_paths = local_audio_paths
|
| 39 |
|
| 40 |
# Take first file of the datasets as sample
|
| 41 |
+
sample1_audio_path = local_audio_paths[0]
|
| 42 |
print(sample1_audio_path)
|
| 43 |
|
| 44 |
# ==============================================================================
|
|
|
|
| 883 |
sample_dimension_selector = gr.Radio(DIMENSION_TITLES, label="Select Learning Dimension", value=DIMENSION_TITLES[0])
|
| 884 |
with gr.Row():
|
| 885 |
with gr.Column(scale=1):
|
| 886 |
+
sample_audio = gr.Audio(label="Sample Audio", value=DIMENSIONS_DATA[0]["audio"])
|
| 887 |
+
# sample_audio = gr.Audio(label="Sample Audio", value=sample1_audio_path)
|
| 888 |
with gr.Column(scale=2):
|
| 889 |
with gr.Column(visible=True) as interactive_view:
|
| 890 |
gr.Markdown("#### Please rate the following features (0-5 points. 0 - Feature not present; 1 - Machine; 3 - Neutral; 5 - Human)")
|