BtB-ExpC commited on
Commit
4b4c185
·
1 Parent(s): 71e0af2

return distractor_list

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -267,9 +267,10 @@ def chatbot(input):
267
  probabilities = [0.25, 0.25, 0.25, 0.25] # 25% each (dit kan ongetwijfeld makkelijker en beter.. #quickfix)
268
  # Randomly choose between OneTrue and NoneTrue based on the probabilities
269
  random_version = random.choices([exercise_1, exercise_2, exercise_3, exercise_4], weights=probabilities, k=1)[0]
 
 
270
 
271
- for distractor in distractors:
272
- print(distractor)
273
 
274
  inputs = gr.Textbox(lines=7, label="Input")
275
  outputs = gr.Textbox(label="Output")
 
267
  probabilities = [0.25, 0.25, 0.25, 0.25] # 25% each (dit kan ongetwijfeld makkelijker en beter.. #quickfix)
268
  # Randomly choose between OneTrue and NoneTrue based on the probabilities
269
  random_version = random.choices([exercise_1, exercise_2, exercise_3, exercise_4], weights=probabilities, k=1)[0]
270
+ distractor_list = f"{distractors[0]}\n{distractors[1]}\n{distractors[2]}\n{distractors[3]"
271
+ return distractor_list
272
 
273
+
 
274
 
275
  inputs = gr.Textbox(lines=7, label="Input")
276
  outputs = gr.Textbox(label="Output")