merterm commited on
Commit
17049a1
·
verified ·
1 Parent(s): 9a5c40d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -166,7 +166,7 @@ def create_interface(users):
166
  with gr.Column(visible=False) as instructions_page:
167
  instructions_text = gr.Markdown("## Part 1: Inspection of the Chart \n\nBelow, you are given a scientific chart. Please inspect it carefully and think about ways to reproduce it in Python. You will have access to this plot throughout the experiment. At the end of the game, you will be asked to write the code to recreate this chart. You will be given a code skeleton and the necessary data at the end. You can take notes below. You will have 2 minutes to take a look at this plot, starting now…")
168
  instruction_image_1 = gr.Image(show_label=False, height=500)
169
- plot_time_remaining = gr.Textbox(value=f"{int(plot_time_limit/60)}:{plot_time_limit%60}", label="Time Remaining", interactive=False)
170
  # questionnaire = gr.Form(["Question 1", "Question 2"], visible=False)
171
 
172
  # Uncertainty Survey Page
@@ -199,7 +199,7 @@ def create_interface(users):
199
  chatbot.chatbot.height = 400
200
  chatbot.chatbot.label = "Teacher LLM"
201
  # start_dialogue_button = gr.Button("Start Dialogue")
202
- part_2_time_remaining = gr.Textbox(value=f"{int(dialogue_time_limit/60)}:{dialogue_time_limit%60}", label="Time Remaining", interactive=False)
203
 
204
  # Uncertainty Survey Part 2
205
  with gr.Column(visible=False) as uncertainty_survey_part_2:
@@ -304,7 +304,7 @@ def create_interface(users):
304
 
305
  # Exit Page
306
  with gr.Column(visible=False) as exit_page:
307
- gr.Markdown("## Thank you for participating in the Learning Games! \n\nYour responses have been recorded. Please download your session data below.")
308
  download_button = gr.Button("Download Session Data")
309
  file_to_download = gr.File(label="Download Results")
310
 
 
166
  with gr.Column(visible=False) as instructions_page:
167
  instructions_text = gr.Markdown("## Part 1: Inspection of the Chart \n\nBelow, you are given a scientific chart. Please inspect it carefully and think about ways to reproduce it in Python. You will have access to this plot throughout the experiment. At the end of the game, you will be asked to write the code to recreate this chart. You will be given a code skeleton and the necessary data at the end. You can take notes below. You will have 2 minutes to take a look at this plot, starting now…")
168
  instruction_image_1 = gr.Image(show_label=False, height=500)
169
+ plot_time_remaining = gr.Textbox(value=f"{(int(plot_time_limit/60)):02}:{(plot_time_limit%60):02}", label="Time Remaining", interactive=False)
170
  # questionnaire = gr.Form(["Question 1", "Question 2"], visible=False)
171
 
172
  # Uncertainty Survey Page
 
199
  chatbot.chatbot.height = 400
200
  chatbot.chatbot.label = "Teacher LLM"
201
  # start_dialogue_button = gr.Button("Start Dialogue")
202
+ part_2_time_remaining = gr.Textbox(value=f"{(int(dialogue_time_limit/60)):02}:{(dialogue_time_limit%60):02}", label="Time Remaining", interactive=False)
203
 
204
  # Uncertainty Survey Part 2
205
  with gr.Column(visible=False) as uncertainty_survey_part_2:
 
304
 
305
  # Exit Page
306
  with gr.Column(visible=False) as exit_page:
307
+ gr.Markdown("## Thank you for participating in the Learning Games! \n\nYour responses have been recorded. Please download your session data below, and send the zip file to <inan.[email protected]>.")
308
  download_button = gr.Button("Download Session Data")
309
  file_to_download = gr.File(label="Download Results")
310