Spaces:
Sleeping
Sleeping
diana3135
commited on
Commit
·
8acc7ec
1
Parent(s):
677973e
modify instructions
Browse files- app.py +1 -1
- instructions.py +22 -16
app.py
CHANGED
|
@@ -254,7 +254,7 @@ if __name__ == "__main__":
|
|
| 254 |
word_count_display_b = gr.Label(value="Word count: 0")
|
| 255 |
modification_suggestions.change(fn=update_word_count, inputs=modification_suggestions, outputs=word_count_display_b)
|
| 256 |
with gr.Row():
|
| 257 |
-
create_final_btn = gr.Button("
|
| 258 |
with gr.Row():
|
| 259 |
final_answer = gr.Textbox(label="Final Answer")
|
| 260 |
session_index = gr.Number(label="Session Index", visible=False)
|
|
|
|
| 254 |
word_count_display_b = gr.Label(value="Word count: 0")
|
| 255 |
modification_suggestions.change(fn=update_word_count, inputs=modification_suggestions, outputs=word_count_display_b)
|
| 256 |
with gr.Row():
|
| 257 |
+
create_final_btn = gr.Button("Review")
|
| 258 |
with gr.Row():
|
| 259 |
final_answer = gr.Textbox(label="Final Answer")
|
| 260 |
session_index = gr.Number(label="Session Index", visible=False)
|
instructions.py
CHANGED
|
@@ -2,12 +2,15 @@ def group_a_instructions():
|
|
| 2 |
# return "This is Group A's experimental module, human - ai - sequential."
|
| 3 |
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 3 ideas in the text box.
|
| 7 |
-
3. Click the "Submit & See AI Output" button to see the AI answer in the "AI Output" box.
|
| 8 |
-
4. Click the "Save Data" button to finish the experiment.
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
'''
|
| 12 |
return instructions
|
| 13 |
|
|
@@ -15,13 +18,14 @@ def group_b_instructions():
|
|
| 15 |
# return "This is Group B's experimental module, ai - human - sequential."
|
| 16 |
instructions = '''
|
| 17 |
You can now start the experiment by following these steps:
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 20 |
3. Enter your 3 ideas integrating the AI-generated answer in the text box.
|
| 21 |
-
4. Click
|
| 22 |
-
5. Click
|
| 23 |
|
| 24 |
-
|
| 25 |
'''
|
| 26 |
return instructions
|
| 27 |
|
|
@@ -30,13 +34,15 @@ def group_c_instructions():
|
|
| 30 |
# return "This is Group C's experimental module, parallel."
|
| 31 |
instructions ='''
|
| 32 |
You can now start the experiment by following these steps:
|
| 33 |
-
1. Carefully read the contents in the "Task Description" box.
|
| 34 |
-
2. Enter your ideas in the text box.
|
| 35 |
-
3. Click the "Submit & See AI Output" button to see the AI-generated answer in the "AI Output" box
|
| 36 |
-
4. Click "Merge" to see the merged final answer in the "Final Merged Output" box.
|
| 37 |
-
5. Click the "Save Data" button to finish the experiment.
|
| 38 |
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
'''
|
| 41 |
return instructions
|
| 42 |
|
|
|
|
| 2 |
# return "This is Group A's experimental module, human - ai - sequential."
|
| 3 |
instructions ='''
|
| 4 |
You can now start the experiment by following these steps:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
1. Read the task description in the "Task Description" box.
|
| 7 |
+
2. Enter your 3 ideas in the text box.
|
| 8 |
+
3. Click "Submit & See AI Output" to let AI enhance and refine your ideas
|
| 9 |
+
4. Review the AI-enhanced final output in the "AI Output" box.
|
| 10 |
+
5. Click "Save Data" to finish.
|
| 11 |
+
|
| 12 |
+
Note: AI will build upon and improve your initial ideas.
|
| 13 |
+
You can try different inputs and click "Submit & See AI Output" to see how the AI integrates your ideas.
|
| 14 |
'''
|
| 15 |
return instructions
|
| 16 |
|
|
|
|
| 18 |
# return "This is Group B's experimental module, ai - human - sequential."
|
| 19 |
instructions = '''
|
| 20 |
You can now start the experiment by following these steps:
|
| 21 |
+
|
| 22 |
+
1. Read the task description in the "Task Description".
|
| 23 |
+
2. Click "Create" to see the AI-generated answer in the "AI Output" box.
|
| 24 |
3. Enter your 3 ideas integrating the AI-generated answer in the text box.
|
| 25 |
+
4. Click "Review" to view your input in the “Final Answer” box.
|
| 26 |
+
5. Click "Save Data" to finish.
|
| 27 |
|
| 28 |
+
Note: Your ideas entered in the text box will be the final answer.
|
| 29 |
'''
|
| 30 |
return instructions
|
| 31 |
|
|
|
|
| 34 |
# return "This is Group C's experimental module, parallel."
|
| 35 |
instructions ='''
|
| 36 |
You can now start the experiment by following these steps:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
+
1. Read the task description in the "Task Description".
|
| 39 |
+
2. Enter your 3 ideas in the text box.
|
| 40 |
+
3. Click "Submit & See AI Output" to see first AI's independent suggestions in the "AI Output" box
|
| 41 |
+
4. Click "Merge" to see how the second AI has combined both perspectives into a final answer in the "Final Merged Output" box.
|
| 42 |
+
5. Click "Save Data" to finish.
|
| 43 |
+
|
| 44 |
+
Note: The second AI will consider both your ideas and those of the first AI to create an integrated solution.
|
| 45 |
+
You can try different inputs and click "Submit & See AI Output" and "Merge" to see how they are merged with the first AI's answer.
|
| 46 |
'''
|
| 47 |
return instructions
|
| 48 |
|