Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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():
|