Blair Yang commited on
Commit
09056a8
1 Parent(s): 998ad0f

update slide

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -43,8 +43,8 @@ def evaluate_guess(reasoning, correctness, confidence, topic):
43
  # Here your logic will go to evaluate the guess
44
  # Placeholder for the correct logic to determine the correct answer
45
  correct_answer = 'Correct' if info_dict['correctness'] else 'Incorrect'
46
- print(correctness)
47
- print(correct_answer)
48
  evaluation_response = "Correct" if correctness == correct_answer else "Incorrect"
49
 
50
  # Assuming info_dict is updated by sample_and_display function
@@ -87,7 +87,7 @@ with gr.Blocks() as app:
87
  question = gr.Textbox(value=question_text, label="Question", interactive=False)
88
  reasoning = gr.Textbox(lines=5, placeholder="Your reasoning (optional)")
89
  correctness = gr.Radio(choices=["Correct", "Incorrect"], label="I believe the model will answer this question")
90
- confidence = gr.Slider(minimum=0, maximum=10, step=1, label="Confidence")
91
  output_text = gr.Textbox(value=correct_text, label="Evaluation Output", interactive=False)
92
  # output_text = gr.Text(label="Evaluation Output")
93
  submit_button = gr.Button("Submit")
 
43
  # Here your logic will go to evaluate the guess
44
  # Placeholder for the correct logic to determine the correct answer
45
  correct_answer = 'Correct' if info_dict['correctness'] else 'Incorrect'
46
+ # print(correctness)
47
+ # print(correct_answer)
48
  evaluation_response = "Correct" if correctness == correct_answer else "Incorrect"
49
 
50
  # Assuming info_dict is updated by sample_and_display function
 
87
  question = gr.Textbox(value=question_text, label="Question", interactive=False)
88
  reasoning = gr.Textbox(lines=5, placeholder="Your reasoning (optional)")
89
  correctness = gr.Radio(choices=["Correct", "Incorrect"], label="I believe the model will answer this question")
90
+ confidence = gr.Slider(minimum=1, maximum=5, step=1, value=3, label="Confidence")
91
  output_text = gr.Textbox(value=correct_text, label="Evaluation Output", interactive=False)
92
  # output_text = gr.Text(label="Evaluation Output")
93
  submit_button = gr.Button("Submit")