vumichien commited on
Commit
702e8c4
·
1 Parent(s): 61fe542

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -6
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
- "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
  }
 
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
  }