debisoft commited on
Commit
49b246b
·
1 Parent(s): 64e26a8
Files changed (1) hide show
  1. app.py +49 -49
app.py CHANGED
@@ -36,55 +36,55 @@ def greet(input):
36
  sys_str = "You are a helpful support assistant. Answer the following question."
37
  qa_list = []
38
  n_prompt_list = []
39
- # qa_list.append({
40
- # "question": "What are the benefits of joining a union?",
41
- # "answer": "Collective bargaining of salary."
42
- # })
43
- #
44
- # qa_list.append({
45
- # "question": "How much are union dues, and what do they cover?",
46
- # "answer": "The union dues for our union is 3%."
47
- # })
48
- #
49
- # qa_list.append({
50
- # "question": "How does the union handle grievances and disputes?",
51
- # "answer": "There will be a panel to oversee disputes"
52
- # })
53
- #
54
- # qa_list.append({
55
- # "question": "Will joining a union affect my job security?",
56
- # "answer": "No."
57
- # })
58
- #
59
- # qa_list.append({
60
- # "question": "What is the process for joining a union?",
61
- # "answer": "Please use the contact form."
62
- # })
63
- #
64
- # qa_list.append({
65
- # "question": "How do unions negotiate contracts with employers?",
66
- # "answer": "Our dear leader will handle the negotiations."
67
- # })
68
- #
69
- # qa_list.append({
70
- # "question": "What role do I play as a union member?",
71
- # "answer": "You will be invited to our monthly picnics"
72
- # })
73
- #
74
- # qa_list.append({
75
- # "question": "How do unions ensure that employers comply with agreements?",
76
- # "answer": "We will have a monthly meeting for members"
77
- # })
78
- #
79
- # qa_list.append({
80
- # "question": "Can I be forced to join a union?",
81
- # "answer": "What kind of questions is that! Of course no!"
82
- # })
83
- #
84
- # qa_list.append({
85
- # "question": "What happens if I disagree with the union’s decisions?",
86
- # "answer": "We will agree to disagree"
87
- # })
88
 
89
  for qna in qa_list:
90
  ques_str = qna["question"]
 
36
  sys_str = "You are a helpful support assistant. Answer the following question."
37
  qa_list = []
38
  n_prompt_list = []
39
+ qa_list.append({
40
+ "question": "What are the benefits of joining a union?",
41
+ "answer": "Collective bargaining of salary."
42
+ })
43
+
44
+ qa_list.append({
45
+ "question": "How much are union dues, and what do they cover?",
46
+ "answer": "The union dues for our union is 3%."
47
+ })
48
+
49
+ qa_list.append({
50
+ "question": "How does the union handle grievances and disputes?",
51
+ "answer": "There will be a panel to oversee disputes"
52
+ })
53
+
54
+ qa_list.append({
55
+ "question": "Will joining a union affect my job security?",
56
+ "answer": "No."
57
+ })
58
+
59
+ qa_list.append({
60
+ "question": "What is the process for joining a union?",
61
+ "answer": "Please use the contact form."
62
+ })
63
+
64
+ qa_list.append({
65
+ "question": "How do unions negotiate contracts with employers?",
66
+ "answer": "Our dear leader will handle the negotiations."
67
+ })
68
+
69
+ qa_list.append({
70
+ "question": "What role do I play as a union member?",
71
+ "answer": "You will be invited to our monthly picnics"
72
+ })
73
+
74
+ qa_list.append({
75
+ "question": "How do unions ensure that employers comply with agreements?",
76
+ "answer": "We will have a monthly meeting for members"
77
+ })
78
+
79
+ qa_list.append({
80
+ "question": "Can I be forced to join a union?",
81
+ "answer": "What kind of questions is that! Of course no!"
82
+ })
83
+
84
+ qa_list.append({
85
+ "question": "What happens if I disagree with the union’s decisions?",
86
+ "answer": "We will agree to disagree"
87
+ })
88
 
89
  for qna in qa_list:
90
  ques_str = qna["question"]