AIOmarRehan commited on
Commit
959a8d3
·
verified ·
1 Parent(s): 397ce82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -2
app.py CHANGED
@@ -125,11 +125,26 @@ Your audio is split into 5-second chunks, and each chunk is converted into a Mel
125
  A CNN predicts a label and confidence score for each chunk.
126
 
127
  The final prediction is determined by:
128
- 1. **Majority vote** the class predicted most frequently across chunks.
129
- 2. **Confidence tie-breaker** if classes tie, the model selects the one with the **highest total confidence** across its chunks.
130
  3. **Final confidence** — the average confidence of all chunks belonging to the final class.
131
 
132
  The JSON output shows the final label, its confidence, and all per-chunk predictions.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  """
134
 
135
  # Gradio Interface
 
125
  A CNN predicts a label and confidence score for each chunk.
126
 
127
  The final prediction is determined by:
128
+ 1. **Majority vote**, the class predicted most frequently across chunks.
129
+ 2. **Confidence tie-breaker**, if classes tie, the model selects the one with the **highest total confidence** across its chunks.
130
  3. **Final confidence** — the average confidence of all chunks belonging to the final class.
131
 
132
  The JSON output shows the final label, its confidence, and all per-chunk predictions.
133
+
134
+ Classes you can classify them:
135
+ . **Baby Cry**
136
+ . **Chainsaw**
137
+ . **Clock Tick**
138
+ . **Cow**
139
+ . **Dog**
140
+ . **Fire Crackling**
141
+ . **Frog**
142
+ . **Helicopter**
143
+ . **Person Sneeze**
144
+ . **Pig**
145
+ . **Rain**
146
+ . **Rooster**
147
+ . **Sea Waves**
148
  """
149
 
150
  # Gradio Interface