Darpan07 commited on
Commit
6bffd96
1 Parent(s): d94942e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -25
app.py CHANGED
@@ -125,33 +125,35 @@ def main():
125
 
126
  if menu_choice == "Estimations":
127
  if st.session_state["is_data_processed"] == True:
128
- st.title("Estimations")
129
- senior_developers = st.text_input(
130
- label="Number of Senior Developers",
131
- placeholder="Enter here....",
132
- )
133
- junior_developers = st.text_input(
134
- label="Number of Junior Developers",
135
- placeholder="Enter here...",
136
- )
137
- tech_leads = st.text_input(
138
- label="Number of Tech Leads",
139
- placeholder="Enter here....",
140
- )
141
-
142
- if senior_developers and junior_developers and tech_leads and st.session_state["is_user_stories_created"] == True:
143
- st.button(
144
- "Generate Estimations",
145
- on_click=lambda: function.generate_estimations(tech_leads, senior_developers, junior_developers),
146
  )
147
-
148
- if st.session_state["is_estimation_data_created"] == True:
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  if st.session_state["is_estimation_data_created"] == True:
150
- st.button("Export Stories", on_click = lambda: export(st.session_state["estimation_data"]))
151
- with st.container():
152
- df = pd.DataFrame(st.session_state["estimation_data"])
153
- st.table(df)
154
-
 
 
155
  else:
156
  st.warning("Plesase Process RFP Details to access this feature", icon="⚠️")
157
 
 
125
 
126
  if menu_choice == "Estimations":
127
  if st.session_state["is_data_processed"] == True:
128
+ if st.session_state["is_user_stories_created"] == True:
129
+ st.title("Estimations")
130
+ senior_developers = st.text_input(
131
+ label="Number of Senior Developers",
132
+ placeholder="Enter here....",
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  )
134
+ junior_developers = st.text_input(
135
+ label="Number of Junior Developers",
136
+ placeholder="Enter here...",
137
+ )
138
+ tech_leads = st.text_input(
139
+ label="Number of Tech Leads",
140
+ placeholder="Enter here....",
141
+ )
142
+
143
+ if senior_developers and junior_developers and tech_leads and st.session_state["is_user_stories_created"] == True:
144
+ st.button(
145
+ "Generate Estimations",
146
+ on_click=lambda: function.generate_estimations(tech_leads, senior_developers, junior_developers),
147
+ )
148
+
149
  if st.session_state["is_estimation_data_created"] == True:
150
+ if st.session_state["is_estimation_data_created"] == True:
151
+ st.button("Export Stories", on_click = lambda: export(st.session_state["estimation_data"]))
152
+ with st.container():
153
+ df = pd.DataFrame(st.session_state["estimation_data"])
154
+ st.table(df)
155
+ else:
156
+ st.warning("Plesase Process User Stories to access this feature", icon="⚠️")
157
  else:
158
  st.warning("Plesase Process RFP Details to access this feature", icon="⚠️")
159