Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -127,11 +127,11 @@ async def predict(
|
|
127 |
|
128 |
return {"timestamp": current_time,
|
129 |
"running_time": f"{round(time.time() - start_time, 4)} s",
|
130 |
-
"
|
131 |
-
"
|
132 |
-
"
|
133 |
-
"
|
134 |
-
"
|
135 |
-
"
|
136 |
"score": score,
|
137 |
}
|
|
|
127 |
|
128 |
return {"timestamp": current_time,
|
129 |
"running_time": f"{round(time.time() - start_time, 4)} s",
|
130 |
+
"error_message": error_message,
|
131 |
+
"audio_duration": audio_duration,
|
132 |
+
"word_predict": best_word_predict,
|
133 |
+
"pitch_predict": best_pitch_predict,
|
134 |
+
"wrong_word_index": wrong_word,
|
135 |
+
"wrong_pitch_index": wrong_pitch,
|
136 |
"score": score,
|
137 |
}
|