KeshavRa commited on
Commit
c7a1920
·
verified ·
1 Parent(s): 05238dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -275,13 +275,18 @@ if selected_app == "4) Create Chatbot":
275
  else:
276
  organization_name = st.text_input("What is the name of your organization", "")
277
 
278
- # num_domains = st.number_input("Number sentences per Q/A pair", value=2, step=1, min_value=1, max_value=3)
 
279
  submit = st.button("Submit")
280
  if submit:
281
  st.session_state.submit = True
282
 
283
  if st.session_state.submit:
284
-
 
 
 
 
285
  requirements = '''
286
  openai
287
  scipy
 
275
  else:
276
  organization_name = st.text_input("What is the name of your organization", "")
277
 
278
+ num_domains = st.number_input("How many datasets do you have uploaded", value=1, step=1, min_value=1, max_value=10)
279
+
280
  submit = st.button("Submit")
281
  if submit:
282
  st.session_state.submit = True
283
 
284
  if st.session_state.submit:
285
+ if organization_name == "":
286
+ st.session_state.clear()
287
+ st.session_state.error = "Please enter an organization name"
288
+ st.rerun()
289
+
290
  requirements = '''
291
  openai
292
  scipy