Skip to content

Commit

Permalink
[FIX] field name mismatch (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoo0515 authored Feb 20, 2024
1 parent 01e2f69 commit d888baf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ai/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def PronunciationFeedback(self, request, context):
pronunciation_score=feedback["pronunciation_score"],
decibel=feedback["decibel"],
speech_rate=feedback["speech_rate"],
positive_feedback=feedback["positive_feedback"],
negative_feedback=feedback["negative_feedback"]
positive_feedback=feedback["positive-feedback"],
negative_feedback=feedback["negative-feedback"]
)


Expand All @@ -47,9 +47,9 @@ def CommunicationFeedback(self, request, context):
print(feedback)

return internal_pb2.CommunicationFeedbackResponse(
positive_feedback=feedback["positive_feedback"],
negative_feedback=feedback["negative_feedback"],
enhanced_answer=feedback["enhanced_answer"]
positive_feedback=feedback["positive-feedback"],
negative_feedback=feedback["negative-feedback"],
enhanced_answer=feedback["enhanced-answer"]
)


Expand Down

0 comments on commit d888baf

Please sign in to comment.