Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
| 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
|