AIOmarRehan commited on
Commit
10f27a0
·
verified ·
1 Parent(s): 2fc5594

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -136,6 +136,18 @@ interface = gr.Interface(
136
  The model predicts a label for every chunk.
137
  The final result is chosen by majority vote, using confidence scores to break ties.
138
  The output shows the final label, its confidence, and the predictions for each chunk.\n"
 
 
 
 
 
 
 
 
 
 
 
 
139
  ),
140
  )
141
 
 
136
  The model predicts a label for every chunk.
137
  The final result is chosen by majority vote, using confidence scores to break ties.
138
  The output shows the final label, its confidence, and the predictions for each chunk.\n"
139
+ "\nHow the Model Makes Predictions
140
+
141
+ The audio is split into 5-second chunks and each chunk is turned into a Mel-spectrogram. A CNN predicts a label and confidence score for every chunk.
142
+ The final result is based on:
143
+
144
+ Majority vote — the class that appears most often across chunks.
145
+
146
+ Tie-breaker — if two or more classes appear the same number of times, the model selects the one with the highest total confidence across its chunks.
147
+
148
+ Final confidence — the average confidence of all chunks predicted as the final class.
149
+
150
+ The output shows the final label, its confidence, and the per-chunk predictions.\n"
151
  ),
152
  )
153