Spaces:
Sleeping
Sleeping
add zeno
Browse files- Dockerfile +19 -0
- __pycache__/zeno_ml.cpython-38.pyc +0 -0
- chatbot.csv +158 -0
- config.toml +12 -0
- requirements.txt +269 -0
- zeno_ml.py +29 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.8
|
2 |
+
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
USER user
|
5 |
+
# Set home to the user's home directory
|
6 |
+
ENV HOME=/home/user \
|
7 |
+
PATH=/home/user/.local/bin:$PATH
|
8 |
+
WORKDIR $HOME/app
|
9 |
+
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
10 |
+
COPY --chown=user . $HOME/app
|
11 |
+
ADD --chown=user ./.zeno_cache $HOME/app/.zeno_cache
|
12 |
+
RUN chown user:user -R $HOME/app
|
13 |
+
|
14 |
+
COPY ./requirements.txt /code/requirements.txt
|
15 |
+
|
16 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
17 |
+
|
18 |
+
|
19 |
+
CMD ["zeno", "config.toml"]
|
__pycache__/zeno_ml.cpython-38.pyc
ADDED
Binary file (792 Bytes). View file
|
|
chatbot.csv
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
,Question,Answering,URL,Label,id_column,output_column
|
2 |
+
0,Does UT Dallas provide services for students with disabilities?,"Yes, accommodations and services are provided for students with documented disabilities to provide equal access to educational programs and services in compliance with Section 504 of the Rehabilitation Act of 1973, the Americans with Disabilities Act (1990), and UT Dallas policy.
|
3 |
+
|
4 |
+
The AccessAbility Resource Center (ARC) facilitates the provision of services and accommodations for students. Accommodations are determined on an individual basis using the student’s disability documentation and in consultation with the student.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,0," The first step is to identify what the problem is that you need help with. Once you know what the problem is, we can start to look for resources that might be able to help you.
|
5 |
+
|
6 |
+
The University of Texas at Dallas provides a variety of services for students with disabilities. These services are designed to help students with disabilities succeed in their academic endeavors. Some of the services that are available include:
|
7 |
+
|
8 |
+
-AccessAbility Resource Center: The AccessAbility Resource Center (AARC) is the campus office that provides services and accommodations to students with disabilities.
|
9 |
+
|
10 |
+
-Academic Advising: Academic advising is available to all students at UT Dallas. Advisors can help you plan your course of study, choose your classes, and understand university policies and procedures.
|
11 |
+
|
12 |
+
-Academic Coaching: Academic coaching is a service offered by the AARC. Coaches work with students one-on-one to help them develop time management skills, study skills, and other strategies to succeed in their classes.
|
13 |
+
|
14 |
+
-Counseling Services: Counseling services are available to all students at UT Dallas. Counselors can provide support and guidance on a variety of issues, including academic stress, anxiety, depression, and more.
|
15 |
+
|
16 |
+
-Disability Services: Disability services"
|
17 |
+
1,"Is there a separate admissions procedure for students with disabilities?
|
18 |
+
","No. The admissions process and criteria are the same for all students applying to UT Dallas. Disability status will not be a consideration in admissions decisions.
|
19 |
+
|
20 |
+
",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,1," University of Texas at Dallas is committed to making its online education programs accessible to a diverse population of working adults. Some students with disabilities may require accommodations in order to participate in an online course. If you have a documented disability and wish to request accommodations, please contact the Office of Disability Services at 972-883-2098 or via email at [email protected] to schedule an appointment with a disability counselor. The Office of Disability Services is located in Room 1.102 in the Student Union."
|
21 |
+
2,Should I send my disability documentation with my admissions application?,"No. Documentation should be submitted to ARC only after you have been admitted to the University and have registered for classes.
|
22 |
+
|
23 |
+
",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,2," When you apply to UTD, you will indicate on your application whether or not you have a disability that requires academic accommodations. If you check “Yes,” you will be prompted to upload your documentation to the application. If you check “No,” you will not be prompted to upload documentation, but you always have the option to do so."
|
24 |
+
3,"What documentation is required to receive disability services?
|
25 |
+
","Students requesting services must provide current and comprehensive documentation from a qualified professional. The documentation must verify the disability and its impact on a student’s academic performance and functional limitations.
|
26 |
+
|
27 |
+
Please refer to the Required Documentation Guidelines for complete details. Please note that eligibility guidelines and accommodations may differ from your high school or other colleges you have attended. An individualized education plan (IEP) or Section 504 plan alone is not sufficient documentation.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,3," The first thing you need to do is get in touch with the Office of Disability Services. You can reach them by phone at 972-883-2034, or by email at [[email protected]](mailto:[email protected]). Once you’ve done that, they’ll be able to help you figure out what documentation is required for your specific situation."
|
28 |
+
4,Is there a deadline for submitting disability documentation?,"To ensure that accommodations will be in place when the academic semester begins, students are encouraged to submit documentation four to six weeks in advance.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,4," The first step is to reach out to the Office of Student AccessAbility to schedule an appointment.
|
29 |
+
|
30 |
+
Once you have completed the necessary paperwork, you will be asked to provide documentation of your disability. The documentation should be on letterhead, typed, and signed by an appropriate professional such as a physician, audiologist, or licensed psychologist. The documentation should include:
|
31 |
+
|
32 |
+
1. A diagnosis of the disability
|
33 |
+
2. The date the disability was diagnosed
|
34 |
+
3. The expected duration of the disability
|
35 |
+
4. A description of the functional limitations resulting from the disability
|
36 |
+
5. A description of the diagnostic methodology used to make the diagnosis
|
37 |
+
6. Recommendations for accommodations"
|
38 |
+
5,Who at the University will know about my disability if I register with ARC?,"The accommodation process requires disclosure of the disability status to faculty and ARC staff to adapt courses, equipment or facilities to ensure equal access.
|
39 |
+
|
40 |
+
ARC recognizes the right of the student to determine who receives disability-related information and the right to confidentiality of this information. Disability-related documents, nor services received from our office, are part of a student’s permanent education record.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,5," When you self-identify to AccessAbility Resource Center, you will be asked to provide documentation of your disability. This documentation is reviewed by an AccessAbility Specialist who then meets with you to discuss your functional limitations and how those limitations impact your ability to access university programs, services, and activities.
|
41 |
+
|
42 |
+
The Specialist will also talk to you about what type of accommodations may be reasonable and appropriate for you. You and the Specialist will then develop an accommodation plan. This plan is shared with faculty and staff as needed so that they are aware of your accommodations and can provide them to you.
|
43 |
+
|
44 |
+
The only people who will know about your disability are those who need to know in order to provide you with your approved accommodations."
|
45 |
+
6,What happens after my disability documentation is received?,"ARC evaluates documentation to determine eligibility for services. An intake appointment is set to identify reasonable accommodations, and an individualized service plan is created to meet the needs of the registered student.
|
46 |
+
|
47 |
+
Please note academic accommodations are not retroactive.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,6," After you have submitted your documentation, it will be reviewed by the AccessAbility Resource Center staff to determine if the documentation meets the criteria for establishing a disability as defined by the Americans with Disabilities Act Amendments Act (ADAAA) of 2008 and Section 504 of the Rehabilitation Act of 1973.
|
48 |
+
|
49 |
+
If the documentation is incomplete or does not meet the criteria, you will be contacted and asked to provide additional information. If the documentation meets the criteria, an appointment will be scheduled for you to meet with a disability specialist.
|
50 |
+
|
51 |
+
During the intake appointment, you will be asked to provide information about the impact of your disability in an academic setting and how you would like your disability to be accommodated. Based on this information, the disability specialist will develop an accommodation plan that will be sent to you and your professor(s)."
|
52 |
+
7,What accommodations and services will I be eligible for?,"Appropriate and reasonable accommodations are determined on an individual basis. These accommodations may differ from those provided in high school or other colleges. Accommodations frequently used by students with disabilities include extended time for test taking, note takers, printed materials in alternate formats, sign language interpreters and the use of assistive technology.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,7," The first step is to come to the AccessAbility Center so we can help you determine what your specific needs are and how we can best help you. We will ask you to provide documentation of your disability, so please bring in whatever you have. If you don’t have any documentation, that’s okay, we can still help you. We will then work with you to develop an accommodation plan that meets your specific needs."
|
53 |
+
8,Services and Procedures for Employees,"We are currently working with Human Resources to begin processing accommodations for employees at UT Dallas. We expect to have this fully on-board by mid-October 2022. Until then, please continue to request your workplace accommodations via the HR website. ",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,8," The first step is to identify the problem. You said you need help from University of Texas at Dallas, so we’ll start there. What kind of help do you need? Do you need help with a specific class? With your job? With campus life in general? Once we know what kind of help you need, we can better direct you to the appropriate resources."
|
54 |
+
9,"How do I take a test at the ARC Testing Center?
|
55 |
+
","First, complete the initial registration process required for all students to receive accommodations at UTD.
|
56 |
+
|
57 |
+
Second, request your official letter of accommodation for your professors as early in the semester as possible by submitting the online letter request form each semester.
|
58 |
+
|
59 |
+
Third, if your official letter of accommodation does include “Eligible to test in the ARC Testing Center,” complete the online scheduling form for each test, exam, or quiz you want to take with the ARC at least five business days in advance (and two weeks in advance for finals).
|
60 |
+
|
61 |
+
If your letter of accommodation does not include “Eligible to test in the ARC Testing Center” and does include testing accommodation (e.g., extra time, a distraction-reduced environment), you will need to make testing arrangements with your professor, not the ARC.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,9," You will need to submit a reservation for an accommodated test at AccessAbility Resource Center. You may go back to the scheduling link and choose the option to edit or update reservations.
|
62 |
+
|
63 |
+
Please note that the date or time can be changed only if your professor decided to change the date or time for the entire class. If you are ill or have an emergency and cannot attend, you will need to submit a new reservation for a make-up test at least five days in advance. The professor must approve the new reservation, which is not always guaranteed. If you need to update or change a reservation you made to test outside the AccessAbility Resource Center, please see your professor."
|
64 |
+
10,"I’ve taken exams at the ARC before, but now “Eligible to test in the ARC Testing Center” does not appear on my accommodation letter. I want to test at the ARC again. How do I appeal this?","Students wishing to appeal their ARC testing eligibility may email the ARC with the subject “ARC Testing Eligibility Appeal.”
|
65 |
+
|
66 |
+
",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,10," Check your accommodation letter to make sure you are still registered with the Office of Disability Accommodation. If you are, check to see if your professor has updated their course syllabus to indicate that the course is now being taught online. If the course is online, you will not be able to test in the ARC Testing Center."
|
67 |
+
11,"Do I have to submit the form for every test, exam or quiz I want to take with you?
|
68 |
+
","Yes.
|
69 |
+
|
70 |
+
",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,11," You need help from UTD, so the first step is to figure out what kind of help you need. Do you need academic help? Or do you need help with something else? If you need academic help, there are a few places you can go. If you need help with something else, there are also a few places you can go. But before we get into that, let’s talk about the form you mentioned.
|
71 |
+
|
72 |
+
The form you mentioned is called the “Request for Testing Accommodations” form. This form is for students who need accommodations for their tests, exams, or quizzes. Accommodations are changes to the way a test is given that level the playing field for students with disabilities.
|
73 |
+
|
74 |
+
Some examples of accommodations are:
|
75 |
+
|
76 |
+
- extra time
|
77 |
+
- a quiet testing environment
|
78 |
+
- a computer to type your answers
|
79 |
+
|
80 |
+
If you think you might need accommodations for your tests, exams, or quizzes, you can fill out the Request for Testing Accommodations form. Once you submit the form, someone from the AccessAbility Resource Center will contact you to set up an appointment. At the appointment, you will talk about your needs and what accommodations would be best for you.
|
81 |
+
|
82 |
+
If you have any other"
|
83 |
+
12,"My professors said they would send the form in for me or schedule my exams at the ARC. This is OK, right?","No. Students must initiate all requests for accommodated exams at the ARC. If your exam is scheduled by anyone other than you, the reservation will not be accepted and you will need to resubmit the online form personally.
|
84 |
+
|
85 |
+
",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,12,"
|
86 |
+
|
87 |
+
First, you will want to talk to your professor about your accommodations. You will want to make sure that they are aware of your needs and have the most updated information.
|
88 |
+
|
89 |
+
Then, you will want to make sure that you have submitted the necessary paperwork to the AccessAbility Resource Center.
|
90 |
+
|
91 |
+
Once you have done those two things, you will want to work with your professor to schedule a time for you to take your exams.
|
92 |
+
|
93 |
+
If you have any questions or concerns, please feel free to reach out to the AccessAbility Resource Center. We are here to help!"
|
94 |
+
13,I want to change my reservation or the date of the exam or make a change to a reservation I already submitted. Can I do that?,"If you submitted a reservation for an accommodated test at ARC, you may go back to the scheduling link and choose the option to edit or update reservations.
|
95 |
+
|
96 |
+
Please note that the date or time can be changed only if your professor decided to change the date or time for the entire class. If you are ill or have an emergency and cannot attend, you will need to submit a new reservation for a make-up test at least five days in advance. The professor must approve the new reservation, which is not always guaranteed. If you need to update or change a reservation you made to test outside the ARC, please see your professor.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,13," You submitted a reservation for an accommodated test at AccessAbility Resource Center, you may go back to the scheduling link and choose the option to edit or update reservations.
|
97 |
+
|
98 |
+
Please note that the date or time can be changed only if your professor decided to change the date or time for the entire class. If you are ill or have an emergency and cannot attend, you will need to submit a new reservation for a make-up test at least five days in advance. The professor must approve the new reservation, which is not always guaranteed. If you need to update or change a reservation you made to test outside the AccessAbility Resource Center, please see your professor."
|
99 |
+
14,"Why can’t I start my exam on the half hour (e.g., 1:30 p.m., 2:30 p.m., 3:30 p.m.)?","Due to limitations in space and proctors, we must start all exams on the hour. Please work with professors to adjust your start times.
|
100 |
+
|
101 |
+
",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,14,"
|
102 |
+
|
103 |
+
The professor has to administer the test to the entire class at the same time.
|
104 |
+
|
105 |
+
The professor has to be available during the entire time the test is being administered in case any students have questions.
|
106 |
+
|
107 |
+
The professor has to proctor the test, which means they have to watch the students taking the test to make sure no one is cheating.
|
108 |
+
|
109 |
+
The professor also has to grade the tests, which takes time.
|
110 |
+
|
111 |
+
All of these things need to happen within the time frame that is scheduled for the class.
|
112 |
+
|
113 |
+
If the professor started administering the test at 1:30 p.m., they would have to finish by 2:20 p.m. in order to give everyone in the class enough time to finish the test.
|
114 |
+
|
115 |
+
However, if the professor started administering the test at 2:00 p.m., they would have until 2:50 p.m. to finish, which gives the students more time to finish the test.
|
116 |
+
|
117 |
+
So, starting the test at 2:00 p.m. is more beneficial for the students because it gives them more time to finish."
|
118 |
+
15,My professor says they cannot find the space or time for me to take my test with accommodations. Guess I will just take it with the class and hope for the best?,"No! Please do not go without your accommodations if that is not your choice. The ARC will work with you and your professors to find options.
|
119 |
+
|
120 |
+
Do not hesitate to contact the ARC director or assistant director at 972-883-2098.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,15," You have a professor who is trying to teach a class and also accommodate you. They have been working with you to make sure that you have what you need in order to be successful. The professor has been flexible in making sure that you have been able to take your tests with accommodations. However, there may be times when the professor is unable to find the space or time for you to take your test. In this case, the professor may ask you to take the test with the class."
|
121 |
+
16,Can I just ask the ARC to get the time or other details from my professor when I fill out the online test form?,"No! Please only fill out the online forms when you have all the details. If you are unsure, ask your professor.
|
122 |
+
|
123 |
+
",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,16," You will want to start by discussing your accommodation needs with your professor. If you have not yet done so, please take a look at the “How to Request an Accommodation” page on the AccessAbility Resource Center website. This page provides guidance on how to have that conversation with your professor.
|
124 |
+
|
125 |
+
Once you have discussed your accommodation needs with your professor and they have agreed to provide the accommodation, you will then need to submit a reservation for your test through the online scheduling system. The online scheduling system will prompt you to enter the time, date, and other details of your test. If you are unsure of any of these details, you can reach out to your professor for clarification.
|
126 |
+
|
127 |
+
Once you have submitted your reservation, your professor will receive an email notification asking them to approve the reservation. Once the reservation is approved, you will receive an email confirmation with the details of your test."
|
128 |
+
17,"My professor gives a pop quiz or short test during part of the class period. How does this work with my accommodations?
|
129 |
+
","Quizzes can be complicated to accommodate, especially if you do not know about them in advance. It’s important to work out the details early in the semester when you see on your syllabus that there will be quizzes in addition to regular exams.
|
130 |
+
|
131 |
+
Many students decide not to use their accommodations on quizzes since they are typically short, and students would have to leave class to go to their eligible testing center. However, it is your choice, and if you do need to use your accommodations, they should be made available to you.
|
132 |
+
|
133 |
+
If you decide you want to use your testing accommodations for quizzes and you know about them in advance, ask the professor if you can take the quiz earlier or later than the class period in a location they provide. If you are eligible to test at the ARC, then you may submit the appropriate test scheduling form.
|
134 |
+
|
135 |
+
If you need a reader, scribe, digital text or any other accommodations that require significant lead time, it is extremely important to discuss these accommodations with the ARC and your professors as soon as possible for quizzes especially pop quizzes.
|
136 |
+
|
137 |
+
The quizzes often are given after class starts; for example, if the class starts at 10 a.m., the test might begin at 10:30 a.m. If you are eligible to take the test at the ARC Testing Center, you are required to start all tests, exams or quizzes on the hour (e.g., 9 a.m., 10 a.m., etc.). In this situation, you will need to get clearance from the professor to take the quiz at any time the ARC Testing Center is open the same date the class takes the quiz or test.
|
138 |
+
|
139 |
+
If you schedule the test earlier or later than the class with the ARC and the professor approves, you will need to begin the test promptly at the start time you reserved. In other words, you cannot schedule a test at 10 a.m. in the ARC then show up at 10:30 a.m. to take the quiz when the rest of the class starts. If you are more than 15 minutes late for your scheduled testing time, you will not be allowed to test.
|
140 |
+
|
141 |
+
Some professors like to discuss the questions on the quiz during class when students are finished. If you arrange to take the quiz after the class due to an accommodation, you must leave the classroom when such discussions occur.
|
142 |
+
|
143 |
+
Faculty are sometimes using quizzes to check attendance (possibly by using clickers). If this is the case, contact the ARC as early as possible so we can work with you and the instructor to identify accommodation options.",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,17," The first thing you need to do is talk to your professor about your accommodations. You will want to explain that you have an accommodation for tests and quizzes that states you are allowed extra time. Once you have talked to your professor, they may be able to work with you in a couple different ways.
|
144 |
+
|
145 |
+
Some professors may be able to give you the quiz or test ahead of time. This would allow you to take the quiz or test in a separate room by yourself with the extra time that you need. Other professors may be able to give you the quiz or test after class. This would also allow you to take the quiz or test in a separate room by yourself with the extra time that you need.
|
146 |
+
|
147 |
+
Some professors may not be able to accommodate you taking the quiz or test early or after class. In this case, you may need to take the quiz or test during class, but in a separate room by yourself with the extra time that you need.
|
148 |
+
|
149 |
+
If you have any questions or concerns, please feel free to reach out to me. I am always happy to help!"
|
150 |
+
21,I’ve never been asked to do this. Why am I just now seeing a request like this? ,"It is essential to consider this type of new accommodation because the risks associated with the COVID-19 virus can be so great to certain students.
|
151 |
+
",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,21," What is the problem you are experiencing? What have you done to try and solve it? What resources have you already used?
|
152 |
+
|
153 |
+
|
154 |
+
|
155 |
+
The University of Texas at Dallas is committed to providing an accessible and supportive environment for all students. If you have a problem or concern, please feel free to reach out to us. We are here to help!"
|
156 |
+
22,"Why can’t this student just show up to take tests?
|
157 |
+
","The documentation provided by the student indicates substantial risk for being in crowds and environments that potentially create significant viral spread; therefore, even coming to class just to take an exam would not be reasonable.
|
158 |
+
",https://accessability.utdallas.edu/student-accommodations/frequently-asked-questions/,Student Accesiblity,22," The first step is to identify what kind of problem you are having. Is this a problem with your course, your professor, or something else? Once you know what kind of problem you are having, we can direct you to the best resources to help solve your problem. If this is a problem with your course, the best resource to help you is your professor. If this is a problem with your professor, the best resource to help you is the department chair. If this is a problem with something else, the best resource to help you is the Office of Student Affairs."
|
config.toml
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Update this file with your Zeno configuration. The port and host are the default for Hugging Face Spaces.
|
2 |
+
view = "chatbot"
|
3 |
+
metadata = "chatbot.csv"
|
4 |
+
data_column = "Question"
|
5 |
+
label_column = "Label"
|
6 |
+
output_column = "output_column"
|
7 |
+
id_column = "id_column"
|
8 |
+
functions = "zeno_ml.py"
|
9 |
+
models = ["text-davinci-002"]
|
10 |
+
|
11 |
+
port = 7860
|
12 |
+
host = "0.0.0.0"
|
requirements.txt
ADDED
@@ -0,0 +1,269 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aiofiles==23.1.0
|
2 |
+
aiohttp==3.8.4
|
3 |
+
aiosignal==1.3.1
|
4 |
+
alembic==1.10.2
|
5 |
+
altair==4.2.2
|
6 |
+
anyio==3.6.2
|
7 |
+
argon2-cffi==21.3.0
|
8 |
+
argon2-cffi-bindings==21.2.0
|
9 |
+
arrow==1.2.3
|
10 |
+
asttokens==2.2.1
|
11 |
+
async-generator==1.10
|
12 |
+
async-timeout==4.0.2
|
13 |
+
attrs==22.2.0
|
14 |
+
azure-ai-formrecognizer==3.2.1
|
15 |
+
azure-common==1.1.28
|
16 |
+
azure-core==1.26.3
|
17 |
+
backcall==0.2.0
|
18 |
+
backoff==2.2.1
|
19 |
+
beautifulsoup4==4.11.2
|
20 |
+
bleach==6.0.0
|
21 |
+
blessed==1.20.0
|
22 |
+
blis==0.7.9
|
23 |
+
cachetools==5.3.0
|
24 |
+
catalogue==2.0.8
|
25 |
+
certifi @ file:///croot/certifi_1671487769961/work/certifi
|
26 |
+
cffi==1.15.1
|
27 |
+
charset-normalizer==3.1.0
|
28 |
+
click==8.1.3
|
29 |
+
cloudpickle==2.2.1
|
30 |
+
comm==0.1.2
|
31 |
+
confection==0.0.4
|
32 |
+
contourpy==1.0.7
|
33 |
+
cycler==0.11.0
|
34 |
+
cymem==2.0.7
|
35 |
+
databricks-cli==0.17.5
|
36 |
+
dataclasses-json==0.5.7
|
37 |
+
datasets==2.10.1
|
38 |
+
debugpy==1.6.6
|
39 |
+
decorator==5.1.1
|
40 |
+
defusedxml==0.7.1
|
41 |
+
dill==0.3.6
|
42 |
+
dnspython==2.3.0
|
43 |
+
docker==6.0.1
|
44 |
+
docopt==0.6.2
|
45 |
+
elasticsearch==7.17.9
|
46 |
+
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.5.0/en_core_web_sm-3.5.0-py3-none-any.whl
|
47 |
+
entrypoints==0.4
|
48 |
+
exceptiongroup==1.1.1
|
49 |
+
executing==1.2.0
|
50 |
+
farm-haystack==1.14.0
|
51 |
+
fastapi==0.94.1
|
52 |
+
fastjsonschema==2.16.3
|
53 |
+
ffmpy==0.3.0
|
54 |
+
filelock==3.9.0
|
55 |
+
Flask==2.2.3
|
56 |
+
Flask-Cors==3.0.10
|
57 |
+
fonttools==4.39.0
|
58 |
+
fqdn==1.5.1
|
59 |
+
frozenlist==1.3.3
|
60 |
+
fsspec==2023.3.0
|
61 |
+
gitdb==4.0.10
|
62 |
+
GitPython==3.1.31
|
63 |
+
gradio==3.21.0
|
64 |
+
greenlet==2.0.2
|
65 |
+
gunicorn==20.1.0
|
66 |
+
h11==0.14.0
|
67 |
+
httpcore==0.16.3
|
68 |
+
httpx==0.23.3
|
69 |
+
huggingface-hub==0.13.1
|
70 |
+
idna==3.4
|
71 |
+
importlib-metadata==6.0.0
|
72 |
+
importlib-resources==5.12.0
|
73 |
+
inflect==6.0.2
|
74 |
+
inquirer==3.1.3
|
75 |
+
ipykernel==6.21.3
|
76 |
+
ipython==8.11.0
|
77 |
+
ipython-genutils==0.2.0
|
78 |
+
ipywidgets==8.0.4
|
79 |
+
isodate==0.6.1
|
80 |
+
isoduration==20.11.0
|
81 |
+
itsdangerous==2.1.2
|
82 |
+
jarowinkler==1.2.3
|
83 |
+
jedi==0.18.2
|
84 |
+
Jinja2==3.1.2
|
85 |
+
joblib==1.2.0
|
86 |
+
jsonpickle==3.0.1
|
87 |
+
jsonpointer==2.3
|
88 |
+
jsonschema==4.17.3
|
89 |
+
jupyter==1.0.0
|
90 |
+
jupyter-console==6.6.3
|
91 |
+
jupyter-events==0.6.3
|
92 |
+
jupyter_client==8.0.3
|
93 |
+
jupyter_core==5.2.0
|
94 |
+
jupyter_server==2.4.0
|
95 |
+
jupyter_server_terminals==0.4.4
|
96 |
+
jupyterlab-pygments==0.2.2
|
97 |
+
jupyterlab-widgets==3.0.5
|
98 |
+
kiwisolver==1.4.4
|
99 |
+
langchain==0.0.106
|
100 |
+
langcodes==3.3.0
|
101 |
+
langdetect==1.0.9
|
102 |
+
linkify-it-py==2.0.0
|
103 |
+
llama-index==0.4.27
|
104 |
+
llvmlite==0.39.1
|
105 |
+
loguru==0.6.0
|
106 |
+
lxml==4.9.2
|
107 |
+
Mako==1.2.4
|
108 |
+
Markdown==3.4.1
|
109 |
+
markdown-it-py==2.2.0
|
110 |
+
MarkupSafe==2.1.2
|
111 |
+
marshmallow==3.19.0
|
112 |
+
marshmallow-enum==1.5.1
|
113 |
+
matplotlib==3.7.1
|
114 |
+
matplotlib-inline==0.1.6
|
115 |
+
mdit-py-plugins==0.3.3
|
116 |
+
mdurl==0.1.2
|
117 |
+
mistune==2.0.5
|
118 |
+
mlflow==2.2.1
|
119 |
+
mmh3==3.0.0
|
120 |
+
monotonic==1.6
|
121 |
+
more-itertools==9.1.0
|
122 |
+
msrest==0.7.1
|
123 |
+
multidict==6.0.4
|
124 |
+
multiprocess==0.70.14
|
125 |
+
murmurhash==1.0.9
|
126 |
+
mypy-extensions==1.0.0
|
127 |
+
nbclassic==0.5.3
|
128 |
+
nbclient==0.7.2
|
129 |
+
nbconvert==7.2.9
|
130 |
+
nbformat==5.7.3
|
131 |
+
nest-asyncio==1.5.6
|
132 |
+
networkx==3.0
|
133 |
+
nltk==3.8.1
|
134 |
+
notebook==6.5.3
|
135 |
+
notebook_shim==0.2.2
|
136 |
+
num2words==0.5.12
|
137 |
+
numba==0.56.4
|
138 |
+
numpy==1.23.5
|
139 |
+
nvidia-cublas-cu11==11.10.3.66
|
140 |
+
nvidia-cuda-nvrtc-cu11==11.7.99
|
141 |
+
nvidia-cuda-runtime-cu11==11.7.99
|
142 |
+
nvidia-cudnn-cu11==8.5.0.96
|
143 |
+
oauthlib==3.2.2
|
144 |
+
openai==0.27.1
|
145 |
+
openTSNE==0.7.1
|
146 |
+
orjson==3.8.7
|
147 |
+
outcome==1.2.0
|
148 |
+
packaging==23.0
|
149 |
+
pandas==1.5.3
|
150 |
+
pandocfilters==1.5.0
|
151 |
+
parso==0.8.3
|
152 |
+
pathos==0.3.0
|
153 |
+
pathy==0.10.1
|
154 |
+
pexpect==4.8.0
|
155 |
+
pickleshare==0.7.5
|
156 |
+
Pillow==9.4.0
|
157 |
+
pinecone-client==2.2.1
|
158 |
+
pkgutil_resolve_name==1.3.10
|
159 |
+
platformdirs==3.1.1
|
160 |
+
posthog==2.3.1
|
161 |
+
pox==0.3.2
|
162 |
+
ppft==1.7.6.6
|
163 |
+
praw==7.7.0
|
164 |
+
prawcore==2.3.0
|
165 |
+
preshed==3.0.8
|
166 |
+
prometheus-client==0.16.0
|
167 |
+
prompt-toolkit==3.0.38
|
168 |
+
protobuf==3.20.2
|
169 |
+
psutil==5.9.4
|
170 |
+
ptyprocess==0.7.0
|
171 |
+
pure-eval==0.2.2
|
172 |
+
pyarrow==11.0.0
|
173 |
+
pycparser==2.21
|
174 |
+
pydantic==1.10.6
|
175 |
+
pydub==0.25.1
|
176 |
+
Pygments==2.14.0
|
177 |
+
PyJWT==2.6.0
|
178 |
+
pyparsing==3.0.9
|
179 |
+
pyrsistent==0.19.3
|
180 |
+
PySocks==1.7.1
|
181 |
+
python-dateutil==2.8.2
|
182 |
+
python-docx==0.8.11
|
183 |
+
python-dotenv==1.0.0
|
184 |
+
python-editor==1.0.4
|
185 |
+
python-json-logger==2.0.7
|
186 |
+
python-multipart==0.0.6
|
187 |
+
pytz==2022.7.1
|
188 |
+
pyvis==0.3.2
|
189 |
+
PyYAML==6.0
|
190 |
+
pyzmq==25.0.0
|
191 |
+
qtconsole==5.4.0
|
192 |
+
QtPy==2.3.0
|
193 |
+
quantulum3==0.8.1
|
194 |
+
querystring-parser==1.2.4
|
195 |
+
rank-bm25==0.2.2
|
196 |
+
rapidfuzz==2.7.0
|
197 |
+
readchar==4.0.3
|
198 |
+
regex==2022.10.31
|
199 |
+
requests==2.28.2
|
200 |
+
requests-oauthlib==1.3.1
|
201 |
+
responses==0.18.0
|
202 |
+
rfc3339-validator==0.1.4
|
203 |
+
rfc3986==1.5.0
|
204 |
+
rfc3986-validator==0.1.1
|
205 |
+
rich==13.3.2
|
206 |
+
scikit-learn==1.2.2
|
207 |
+
scipy==1.10.1
|
208 |
+
selenium==4.8.2
|
209 |
+
Send2Trash==1.8.0
|
210 |
+
sentence-transformers==2.2.2
|
211 |
+
sentencepiece==0.1.97
|
212 |
+
seqeval==1.2.2
|
213 |
+
shap==0.41.0
|
214 |
+
six==1.16.0
|
215 |
+
slicer==0.0.7
|
216 |
+
smart-open==6.3.0
|
217 |
+
smmap==5.0.0
|
218 |
+
sniffio==1.3.0
|
219 |
+
sortedcontainers==2.4.0
|
220 |
+
soupsieve==2.4
|
221 |
+
spacy==3.5.1
|
222 |
+
spacy-legacy==3.0.12
|
223 |
+
spacy-loggers==1.0.4
|
224 |
+
SQLAlchemy==1.4.46
|
225 |
+
sqlparse==0.4.3
|
226 |
+
srsly==2.4.6
|
227 |
+
stack-data==0.6.2
|
228 |
+
starlette==0.26.1
|
229 |
+
tabulate==0.9.0
|
230 |
+
tenacity==8.2.2
|
231 |
+
terminado==0.17.1
|
232 |
+
thinc==8.1.9
|
233 |
+
threadpoolctl==3.1.0
|
234 |
+
tika==2.6.0
|
235 |
+
tiktoken==0.3.1
|
236 |
+
tinycss2==1.2.1
|
237 |
+
tokenizers==0.13.2
|
238 |
+
tomli==2.0.1
|
239 |
+
toolz==0.12.0
|
240 |
+
torch==1.13.1
|
241 |
+
torchvision==0.14.1
|
242 |
+
tornado==6.2
|
243 |
+
tqdm==4.65.0
|
244 |
+
traitlets==5.9.0
|
245 |
+
transformers==4.25.1
|
246 |
+
trio==0.22.0
|
247 |
+
trio-websocket==0.10.0
|
248 |
+
typer==0.7.0
|
249 |
+
typing-inspect==0.8.0
|
250 |
+
typing_extensions==4.5.0
|
251 |
+
uc-micro-py==1.0.1
|
252 |
+
update-checker==0.18.0
|
253 |
+
uri-template==1.2.0
|
254 |
+
urllib3==1.26.15
|
255 |
+
uvicorn==0.21.0
|
256 |
+
wasabi==1.1.1
|
257 |
+
wcwidth==0.2.6
|
258 |
+
webcolors==1.12
|
259 |
+
webdriver-manager==3.8.5
|
260 |
+
webencodings==0.5.1
|
261 |
+
websocket-client==1.5.1
|
262 |
+
websockets==10.4
|
263 |
+
Werkzeug==2.2.3
|
264 |
+
widgetsnbextension==4.0.5
|
265 |
+
wsproto==1.2.0
|
266 |
+
xxhash==3.2.0
|
267 |
+
yarl==1.8.2
|
268 |
+
zenoml==0.4.2
|
269 |
+
zipp==3.15.0
|
zeno_ml.py
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import pickle
|
2 |
+
|
3 |
+
|
4 |
+
from datasets import load_dataset
|
5 |
+
from zeno import (
|
6 |
+
DistillReturn,
|
7 |
+
MetricReturn,
|
8 |
+
ModelReturn,
|
9 |
+
ZenoOptions,
|
10 |
+
distill,
|
11 |
+
metric,
|
12 |
+
model,
|
13 |
+
)
|
14 |
+
|
15 |
+
@model
|
16 |
+
def get_model(model_name):
|
17 |
+
|
18 |
+
|
19 |
+
def pred(df, ops: ZenoOptions):
|
20 |
+
res = []
|
21 |
+
#print(df)
|
22 |
+
#print(ops)
|
23 |
+
for data_columns in df[ops.data_column]:
|
24 |
+
## return where the data column exist in the dataframe column Question by the index
|
25 |
+
df_index = df[df["Question"] == data_columns].index[0]
|
26 |
+
res.append(df["Answering"][df_index])
|
27 |
+
return ModelReturn(model_output=res)
|
28 |
+
|
29 |
+
return pred
|