Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def process_audio(input_data, segment_duration=10):
|
|
76 |
confidence_percentage = 1 - expit(decision_score).item()
|
77 |
segment_predictions.append(pred)
|
78 |
output_dict = {
|
79 |
-
"
|
80 |
"segments": [
|
81 |
{
|
82 |
"segment": idx + 1,
|
|
|
76 |
confidence_percentage = 1 - expit(decision_score).item()
|
77 |
segment_predictions.append(pred)
|
78 |
output_dict = {
|
79 |
+
"label": "real" if sum(segment_predictions) > (len(segment_predictions) / 2) else "fake",
|
80 |
"segments": [
|
81 |
{
|
82 |
"segment": idx + 1,
|