diana3135 commited on
Commit
52ce03e
·
1 Parent(s): d19204d

parallel, HAI button labels

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. instructions.py +4 -5
app.py CHANGED
@@ -196,7 +196,7 @@ if __name__ == "__main__":
196
  with gr.Row():
197
  submit_btn = gr.Button("Create")
198
  with gr.Row():
199
- ai_output = gr.Textbox(label="AI modified output")
200
  session_index = gr.Number(label="Session Index", visible=False)
201
 
202
  submit_btn.click(
@@ -242,8 +242,8 @@ if __name__ == "__main__":
242
  with gr.Row():
243
  create_initial_btn = gr.Button("Create")
244
  with gr.Row():
245
- initial_answer = gr.Textbox(label="AI Initial Answer")
246
- modification_suggestions = gr.Textbox(label="Modification Suggestions (At least 50 words)")
247
  word_count_display_b = gr.Label(value="Word count: 0")
248
  modification_suggestions.change(fn=update_word_count, inputs=modification_suggestions, outputs=word_count_display_b)
249
  with gr.Row():
 
196
  with gr.Row():
197
  submit_btn = gr.Button("Create")
198
  with gr.Row():
199
+ ai_output = gr.Textbox(label="AI Output")
200
  session_index = gr.Number(label="Session Index", visible=False)
201
 
202
  submit_btn.click(
 
242
  with gr.Row():
243
  create_initial_btn = gr.Button("Create")
244
  with gr.Row():
245
+ initial_answer = gr.Textbox(label="AI Output")
246
+ modification_suggestions = gr.Textbox(label="Human Input (At least 50 words)")
247
  word_count_display_b = gr.Label(value="Word count: 0")
248
  modification_suggestions.change(fn=update_word_count, inputs=modification_suggestions, outputs=word_count_display_b)
249
  with gr.Row():
instructions.py CHANGED
@@ -4,7 +4,7 @@ def group_a_instructions():
4
  You can now start the experiment by following these steps:
5
  1. Carefully read the contents in the "Task Description" box.
6
  2. Enter your ideas in the "Human Input" box.
7
- 3. Click the "Create" button to see the AI-refined answer in the "AI Modified Output" box.
8
  4. Click the "Evaluate" button to view the evaluations of the answer.
9
  5. Click the "Save Data" button to finish the experiment.
10
 
@@ -17,8 +17,8 @@ def group_b_instructions():
17
  instructions = '''
18
  You can now start the experiment by following these steps:
19
  1. Carefully read the contents in the "Task Description" box.
20
- 2. Click the "Create" button to see the AI-generated answer in the "AI Initial Answer" box.
21
- 3. Enter your suggestions for the AI-generated answer in the "Modification Suggestions" box.
22
  4. Click the "Modify" button to see the final answer in the "Final Answer" box.
23
  5. Click the "Evaluate" button to view the evaluations of the answer.
24
  6. Click the "Save Data" button to finish the experiment.
@@ -48,12 +48,11 @@ def invalid_group():
48
  def default_task_discription():
49
  TASK_DESCRIPTION = """
50
  Given Airbnb's current business model below, please propose three ideas to make it comply with the 17 SDGs.
51
-
52
  Airbnb serves two main customer segments: travelers seeking unique, cost-effective accommodations and property owners renting out their spaces. Travelers, including tourists, business travelers, and families, prefer a personalized experience over hotels. Property owners, from single-room hosts to entire home renters, use the platform to earn income from underutilized properties.
53
 
54
  The value proposition offers diverse lodging options for guests, providing an authentic local experience and secure booking. Hosts benefit from income opportunities and tools for listing, pricing, and marketing their spaces.
55
 
56
  Operations focus on a user-friendly marketplace connecting hosts with guests, ensuring safety through verification, and providing customer support. The platform invests in technology to enhance user experience and efficiency, with marketing efforts and partnerships expanding its reach.
57
-
58
  """
59
  return TASK_DESCRIPTION
 
4
  You can now start the experiment by following these steps:
5
  1. Carefully read the contents in the "Task Description" box.
6
  2. Enter your ideas in the "Human Input" box.
7
+ 3. Click the "Create" button to see the AI answer in the "AI Output" box.
8
  4. Click the "Evaluate" button to view the evaluations of the answer.
9
  5. Click the "Save Data" button to finish the experiment.
10
 
 
17
  instructions = '''
18
  You can now start the experiment by following these steps:
19
  1. Carefully read the contents in the "Task Description" box.
20
+ 2. Click the "Create" button to see the AI-generated answer in the "AI Output" box.
21
+ 3. Enter your suggestions for the AI-generated answer in the "Human Input" box.
22
  4. Click the "Modify" button to see the final answer in the "Final Answer" box.
23
  5. Click the "Evaluate" button to view the evaluations of the answer.
24
  6. Click the "Save Data" button to finish the experiment.
 
48
  def default_task_discription():
49
  TASK_DESCRIPTION = """
50
  Given Airbnb's current business model below, please propose three ideas to make it comply with the 17 SDGs.
51
+
52
  Airbnb serves two main customer segments: travelers seeking unique, cost-effective accommodations and property owners renting out their spaces. Travelers, including tourists, business travelers, and families, prefer a personalized experience over hotels. Property owners, from single-room hosts to entire home renters, use the platform to earn income from underutilized properties.
53
 
54
  The value proposition offers diverse lodging options for guests, providing an authentic local experience and secure booking. Hosts benefit from income opportunities and tools for listing, pricing, and marketing their spaces.
55
 
56
  Operations focus on a user-friendly marketplace connecting hosts with guests, ensuring safety through verification, and providing customer support. The platform invests in technology to enhance user experience and efficiency, with marketing efforts and partnerships expanding its reach.
 
57
  """
58
  return TASK_DESCRIPTION