Skip to content

Commit e2553d2

Browse files
committed
add info message
1 parent 12ce3a1 commit e2553d2

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<template>
2+
<div class="ui info small message" v-if="showInfo">
3+
<i class="close icon" @click="closeInfo"></i>
4+
<div class="header">
5+
About analysis:
6+
</div>
7+
<p>We select 65% of the audio, evenly spaced throughout the track, for analysis to ensure efficient processing while maintaining accuracy.</p>
8+
</div>
9+
</template>
10+
11+
<script setup>
12+
import { ref } from 'vue';
13+
14+
const showInfo = ref(true);
15+
16+
function closeInfo() {
17+
showInfo.value = false;
18+
}
19+
</script>

examples/demos/mood-classifiers/src/MoodClassifier.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<div class="ui container">
3+
<AnalysisInfoMessage />
34
<div id="file-select-area">
45
<input type="file" ref="fileInput" @change="handleFileUpload" style="display: none"/>
56
<div id="file-drop-area"
@@ -64,6 +65,7 @@
6465
<script setup lang="js">
6566
import { computed, onMounted, useTemplateRef } from 'vue';
6667
import { useWaveformDisplay, useAnalysisResults, setupArousalValenceChart } from './moodClassifierComposables';
68+
import AnalysisInfoMessage from '../../common/AnalysisInfoMessage.vue';
6769
6870
const classifiers = {
6971
danceability: { icon: '💃🏻', label: 'Danceability' },

examples/demos/tagging/src/TaggingDemo.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<div class="ui container" id="genre-tagging-container">
3+
<AnalysisInfoMessage />
34
<div id="file-select-area">
45
<input type="file" ref="fileInput" @change="handleFileUpload" style="display: none"/>
56
<div id="file-drop-area"
@@ -52,6 +53,7 @@
5253
import { computed, useTemplateRef } from 'vue';
5354
import { useWaveformDisplay, useAnalysisResults } from './taggingComposables';
5455
import PredictionSet from './PredictionSet.vue';
56+
import AnalysisInfoMessage from '../../common/AnalysisInfoMessage.vue';
5557
5658
const classifiers = {
5759
'genre_discogs': { label: 'Music style classification', urlName: 'Genre Discogs400', url: 'https://essentia.upf.edu/models.html#genre-discogs400' },

0 commit comments

Comments
 (0)