mohammed3536 commited on
Commit
325487d
·
verified ·
1 Parent(s): 6bc36cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -56,6 +56,10 @@ def generate_question_with_chatgpt(context):
56
 
57
  # Extract the generated question from the response
58
  generated_question = result["choices"][0]["message"]["content"]
 
 
 
 
59
  return generated_question
60
 
61
  def main():
 
56
 
57
  # Extract the generated question from the response
58
  generated_question = result["choices"][0]["message"]["content"]
59
+
60
+ # Decode the byte string to Unicode string
61
+ generated_question = generated_question.decode("utf-8")
62
+
63
  return generated_question
64
 
65
  def main():