Spaces:
Running
Running
Update app.py
Browse files279 unmodified lines2802812822832842852862872881 unmodified line290291292293294295296279 unmodified linesdomain_info = []for i in range(num_domains):domain_link = st.text_input(f"Please enter link to dataset {i} with the format username/dataset_name", "Example: KeshavRa/About_YSA_Database")domain_name = st.text_input(f"What should domain {i} be called in the chatbot itself", "Example: About YSA")domain_purpose = st.text_area(f"What is the purpose of domain {i}, provide example questions (this will be visible to users of the chatbot)", '''Example: On this page, you can learn about what YSA does, how YSA was started, the advisory board, and the programs we offer.Example Questions--> What is the purpose of Youth Spirit Artworks?--> Who created YSA?1 unmodified line--> What are the three empowerment-focused program areas of YSA?''')domain_instructions = st.text_input(f"What baseline instructions/specifications should be sent to ChatGPT to answer questions in domain {i}", "Example: You are an assistant to help the user learn more about Youth Spirit Artworks")domain = {"link": domain_link, "name": domain_name, "purpose": domain_purpose, "instructions": domain_instructions}domain_info.append(domain)279 unmodified lines2802812822832842852862872881 unmodified line290291292293294295296279 unmodified linesdomain_info = []for i in range(num_domains):domain_link = st.text_input(f"Please enter link to dataset {i+1} with the format username/dataset_name", "Example: KeshavRa/About_YSA_Database")domain_name = st.text_input(f"What should domain {i+1} be called in the chatbot itself", "Example: About YSA")domain_purpose = st.text_area(f"What is the purpose of domain {i+1}, provide example questions (this will be visible to users of the chatbot)", '''Example: On this page, you can learn about what YSA does, how YSA was started, the advisory board, and the programs we offer.Example Questions--> What is the purpose of Youth Spirit Artworks?--> Who created YSA?1 unmodified line--> What are the three empowerment-focused program areas of YSA?''')domain_instructions = st.text_input(f"What baseline instructions/specifications should be sent to ChatGPT to answer questions in domain {i+1}", "Example: You are an assistant to help the user learn more about Youth Spirit Artworks")domain = {"link": domain_link, "name": domain_name, "purpose": domain_purpose, "instructions": domain_instructions}domain_info.append(domain)
app.py+4-4