Spaces:
Sleeping
Sleeping
agent not makes sense
Browse files- app.py +18 -14
- pages/00_Step 0: Goal.py +19 -15
- pages/01_Step 1: Condition Necesssary.py +19 -15
- pages/02_Step 2: Altered Condition.py +19 -15
- pages/03_Step 3: Lead to Altered Condition.py +19 -15
- pages/04_Step 4: Story.py +21 -17
app.py
CHANGED
@@ -69,21 +69,25 @@ def show_data():
|
|
69 |
st.write(data['Input.story'])
|
70 |
|
71 |
with col2:
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
st.write(data['Answer.condition'])
|
76 |
-
st.subheader('Altered Condition')
|
77 |
-
st.write(data['Answer.not_condition'])
|
78 |
-
st.subheader('Lead to Altered Condition')
|
79 |
-
st.write(data['Answer.not_condition_ep'])
|
80 |
-
|
81 |
-
if data['Answer.story_impact.yes']:
|
82 |
-
show_story()
|
83 |
else:
|
84 |
-
st.subheader('
|
85 |
-
st.
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
from api import show_likert_scale
|
89 |
done = show_likert_scale('step_all', 'Whole', data['AssignmentId'])
|
|
|
69 |
st.write(data['Input.story'])
|
70 |
|
71 |
with col2:
|
72 |
+
if data['Answer.agent_makes_no_sense.on']:
|
73 |
+
st.subheader('Agent Makes No Sense')
|
74 |
+
st.write("Proposed Agent: " + data['Answer.agent_makes_no_sense_text'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
else:
|
76 |
+
st.subheader('Goal')
|
77 |
+
st.write(data['Answer.goal'])
|
78 |
+
st.subheader('Condition Necessary')
|
79 |
+
st.write(data['Answer.condition'])
|
80 |
+
st.subheader('Altered Condition')
|
81 |
+
st.write(data['Answer.not_condition'])
|
82 |
+
st.subheader('Lead to Altered Condition')
|
83 |
+
st.write(data['Answer.not_condition_ep'])
|
84 |
+
|
85 |
+
if data['Answer.story_impact.yes']:
|
86 |
+
show_story()
|
87 |
+
else:
|
88 |
+
st.subheader('Why no impact?')
|
89 |
+
st.text(data['Answer.why_no_impact'])
|
90 |
+
print(data)
|
91 |
|
92 |
from api import show_likert_scale
|
93 |
done = show_likert_scale('step_all', 'Whole', data['AssignmentId'])
|
pages/00_Step 0: Goal.py
CHANGED
@@ -72,21 +72,25 @@ def show_data():
|
|
72 |
st.write(data['Input.story'])
|
73 |
|
74 |
with col2:
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
90 |
|
91 |
from api import show_likert_scale
|
92 |
done = show_likert_scale('step_0', 'Goal', data['AssignmentId'])
|
|
|
72 |
st.write(data['Input.story'])
|
73 |
|
74 |
with col2:
|
75 |
+
if data['Answer.agent_makes_no_sense.on']:
|
76 |
+
st.subheader('Agent Makes No Sense')
|
77 |
+
st.write("Proposed Agent: " + data['Answer.agent_makes_no_sense_text'])
|
78 |
+
else:
|
79 |
+
st.subheader('Goal')
|
80 |
+
st.write(data['Answer.goal'])
|
81 |
+
# st.subheader('Condition Necessary')
|
82 |
+
# st.write(data['Answer.condition'])
|
83 |
+
# st.subheader('Altered Condition')
|
84 |
+
# st.write(data['Answer.not_condition'])
|
85 |
+
# st.subheader('Lead to Altered Condition')
|
86 |
+
# st.write(data['Answer.not_condition_ep'])
|
87 |
+
|
88 |
+
# if data['Answer.story_impact.yes'] == True:
|
89 |
+
# show_story()
|
90 |
+
# else:
|
91 |
+
# st.subheader('Why no impact?')
|
92 |
+
# st.text(data['Answer.why_no_impact'])
|
93 |
+
# print(data)
|
94 |
|
95 |
from api import show_likert_scale
|
96 |
done = show_likert_scale('step_0', 'Goal', data['AssignmentId'])
|
pages/01_Step 1: Condition Necesssary.py
CHANGED
@@ -72,21 +72,25 @@ def show_data():
|
|
72 |
st.write(data['Input.story'])
|
73 |
|
74 |
with col2:
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
90 |
|
91 |
from api import show_likert_scale
|
92 |
done = show_likert_scale('step_1', 'Necessary Condition', data['AssignmentId'])
|
|
|
72 |
st.write(data['Input.story'])
|
73 |
|
74 |
with col2:
|
75 |
+
if data['Answer.agent_makes_no_sense.on']:
|
76 |
+
st.subheader('Agent Makes No Sense')
|
77 |
+
st.write("Proposed Agent: " + data['Answer.agent_makes_no_sense_text'])
|
78 |
+
else:
|
79 |
+
st.subheader('Goal')
|
80 |
+
st.write(data['Answer.goal'])
|
81 |
+
st.subheader('Condition Necessary')
|
82 |
+
st.write(data['Answer.condition'])
|
83 |
+
# st.subheader('Altered Condition')
|
84 |
+
# st.write(data['Answer.not_condition'])
|
85 |
+
# st.subheader('Lead to Altered Condition')
|
86 |
+
# st.write(data['Answer.not_condition_ep'])
|
87 |
+
|
88 |
+
# if data['Answer.story_impact.yes'] == True:
|
89 |
+
# show_story()
|
90 |
+
# else:
|
91 |
+
# st.subheader('Why no impact?')
|
92 |
+
# st.text(data['Answer.why_no_impact'])
|
93 |
+
# print(data)
|
94 |
|
95 |
from api import show_likert_scale
|
96 |
done = show_likert_scale('step_1', 'Necessary Condition', data['AssignmentId'])
|
pages/02_Step 2: Altered Condition.py
CHANGED
@@ -74,21 +74,25 @@ def show_data():
|
|
74 |
st.write(data['Input.story'])
|
75 |
|
76 |
with col2:
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
92 |
|
93 |
from api import show_likert_scale
|
94 |
done = show_likert_scale('step_2', 'Altered Condition', data['AssignmentId'])
|
|
|
74 |
st.write(data['Input.story'])
|
75 |
|
76 |
with col2:
|
77 |
+
if data['Answer.agent_makes_no_sense.on']:
|
78 |
+
st.subheader('Agent Makes No Sense')
|
79 |
+
st.write("Proposed Agent: " + data['Answer.agent_makes_no_sense_text'])
|
80 |
+
else:
|
81 |
+
st.subheader('Goal')
|
82 |
+
st.write(data['Answer.goal'])
|
83 |
+
st.subheader('Condition Necessary')
|
84 |
+
st.write(data['Answer.condition'])
|
85 |
+
st.subheader('Altered Condition')
|
86 |
+
st.write(data['Answer.not_condition'])
|
87 |
+
# st.subheader('Lead to Altered Condition')
|
88 |
+
# st.write(data['Answer.not_condition_ep'])
|
89 |
+
|
90 |
+
# if data['Answer.story_impact.yes'] == True:
|
91 |
+
# show_story()
|
92 |
+
# else:
|
93 |
+
# st.subheader('Why no impact?')
|
94 |
+
# st.text(data['Answer.why_no_impact'])
|
95 |
+
# print(data)
|
96 |
|
97 |
from api import show_likert_scale
|
98 |
done = show_likert_scale('step_2', 'Altered Condition', data['AssignmentId'])
|
pages/03_Step 3: Lead to Altered Condition.py
CHANGED
@@ -74,21 +74,25 @@ def show_data():
|
|
74 |
st.write(data['Input.story'])
|
75 |
|
76 |
with col2:
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
92 |
|
93 |
from api import show_likert_scale
|
94 |
done = show_likert_scale('step_3', 'Lead to Altered Condition', data['AssignmentId'])
|
|
|
74 |
st.write(data['Input.story'])
|
75 |
|
76 |
with col2:
|
77 |
+
if data['Answer.agent_makes_no_sense.on']:
|
78 |
+
st.subheader('Agent Makes No Sense')
|
79 |
+
st.write("Proposed Agent: " + data['Answer.agent_makes_no_sense_text'])
|
80 |
+
else:
|
81 |
+
st.subheader('Goal')
|
82 |
+
st.write(data['Answer.goal'])
|
83 |
+
st.subheader('Condition Necessary')
|
84 |
+
st.write(data['Answer.condition'])
|
85 |
+
st.subheader('Altered Condition')
|
86 |
+
st.write(data['Answer.not_condition'])
|
87 |
+
st.subheader('Lead to Altered Condition')
|
88 |
+
st.write(data['Answer.not_condition_ep'])
|
89 |
+
|
90 |
+
# if data['Answer.story_impact.yes'] == True:
|
91 |
+
# show_story()
|
92 |
+
# else:
|
93 |
+
# st.subheader('Why no impact?')
|
94 |
+
# st.text(data['Answer.why_no_impact'])
|
95 |
+
# print(data)
|
96 |
|
97 |
from api import show_likert_scale
|
98 |
done = show_likert_scale('step_3', 'Lead to Altered Condition', data['AssignmentId'])
|
pages/04_Step 4: Story.py
CHANGED
@@ -69,24 +69,28 @@ def show_data():
|
|
69 |
st.write(data['Input.story'])
|
70 |
|
71 |
with col2:
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
st.write(data['Answer.condition'])
|
76 |
-
st.subheader('Altered Condition')
|
77 |
-
st.write(data['Answer.not_condition'])
|
78 |
-
st.subheader('Lead to Altered Condition')
|
79 |
-
st.write(data['Answer.not_condition_ep'])
|
80 |
-
|
81 |
-
print("*****", data['Answer.story_impact.yes'])
|
82 |
-
|
83 |
-
if data['Answer.story_impact.yes']:
|
84 |
-
print("*****", data['Answer.story_impact.yes'])
|
85 |
-
show_story()
|
86 |
else:
|
87 |
-
st.subheader('
|
88 |
-
st.
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
from api import show_likert_scale
|
92 |
done = show_likert_scale('step_4', 'Rewritten Story', data['AssignmentId'])
|
|
|
69 |
st.write(data['Input.story'])
|
70 |
|
71 |
with col2:
|
72 |
+
if data['Answer.agent_makes_no_sense.on']:
|
73 |
+
st.subheader('Agent Makes No Sense')
|
74 |
+
st.write("Proposed Agent: " + data['Answer.agent_makes_no_sense_text'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
else:
|
76 |
+
st.subheader('Goal')
|
77 |
+
st.write(data['Answer.goal'])
|
78 |
+
st.subheader('Condition Necessary')
|
79 |
+
st.write(data['Answer.condition'])
|
80 |
+
st.subheader('Altered Condition')
|
81 |
+
st.write(data['Answer.not_condition'])
|
82 |
+
st.subheader('Lead to Altered Condition')
|
83 |
+
st.write(data['Answer.not_condition_ep'])
|
84 |
+
|
85 |
+
print("*****", data['Answer.story_impact.yes'])
|
86 |
+
|
87 |
+
if data['Answer.story_impact.yes']:
|
88 |
+
print("*****", data['Answer.story_impact.yes'])
|
89 |
+
show_story()
|
90 |
+
else:
|
91 |
+
st.subheader('Why no impact?')
|
92 |
+
st.text(data['Answer.why_no_impact'])
|
93 |
+
print(data)
|
94 |
|
95 |
from api import show_likert_scale
|
96 |
done = show_likert_scale('step_4', 'Rewritten Story', data['AssignmentId'])
|