mohammed3536 commited on
Commit
f8123ef
1 Parent(s): 32cdcfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -56,8 +56,6 @@ def generate_question_with_chatgpt(context):
56
  response = requests.post(CHATGPT_API_ENDPOINT, json=data, headers=headers)
57
  result = response.json()
58
 
59
- # Extract the generated question from the response
60
- generated_question = result["choices"][0]["message"]["content"]
61
  return generated_question
62
 
63
 
 
56
  response = requests.post(CHATGPT_API_ENDPOINT, json=data, headers=headers)
57
  result = response.json()
58
 
 
 
59
  return generated_question
60
 
61