Spaces:
Sleeping
Sleeping
u393845
commited on
Commit
•
3c71ce9
1
Parent(s):
5ab686f
files
Browse files
app.py
CHANGED
@@ -212,23 +212,26 @@ def generate_answer_text_davinci_003(question,openAI_key):
|
|
212 |
"answer should be short and concise. \n\nQuery: {question}\nAnswer: "
|
213 |
|
214 |
prompt += f"Query: {question}\nAnswer:"
|
215 |
-
answer = generate_text_text_davinci_003(openAI_key, prompt,"text-davinci-003")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
return answer
|
217 |
|
218 |
# pre-defined questions
|
219 |
questions = [
|
220 |
-
"What
|
221 |
-
"
|
222 |
-
"
|
223 |
-
"
|
224 |
-
"
|
225 |
-
"what are the main shortcomings of this study?",
|
226 |
-
"what are the main findings of the study?",
|
227 |
-
"what are the main results of the study?",
|
228 |
-
"what are the main contributions of this study?",
|
229 |
-
"what is the conclusion of this paper?",
|
230 |
-
"what are the input features used in this study?",
|
231 |
-
"what is the dependent variable in this study?",
|
232 |
]
|
233 |
|
234 |
|
|
|
212 |
"answer should be short and concise. \n\nQuery: {question}\nAnswer: "
|
213 |
|
214 |
prompt += f"Query: {question}\nAnswer:"
|
215 |
+
#answer = generate_text_text_davinci_003(openAI_key, prompt,"text-davinci-003")
|
216 |
+
|
217 |
+
qna_dic = {
|
218 |
+
"What is the total scope 1 GHG emission?": "The total scope 1 GHG emission in FY 2022-23 is 2,942 tons of CO2e [Page no. 116].",
|
219 |
+
"What is the total scope 2 GHG emission?": "The total scope 2 GHG emission in FY 2022-23 is 19,586 tons of CO2e [Page no. 116].",
|
220 |
+
"What is the total scope 3 GHG emission?": "WNS measures and tracks its direct (Scope 1) and indirect (Scope 2) GHG emissions in context with its energy consumption. The methodology used for calculating GHG emissions is aligned with the globally accepted GHG protocol standards developed by the World Resources Institute. Additionally, WNS has joined the “Race to Zero” campaign backed by the United Nations and committed to attaining science-based net-zero targets. WNS is leveraging a high-quality technical tool to monitor and measure data across multiple locations and gather insights for tracking and improving its performance. The total Scope 3 GHG emission is not reported, however, WNS may evaluate this disclosure requirement in the near future. [Page no. 116, 129]",
|
221 |
+
"What are the main results of the study?": "The main results of the study include the formulation of a policy to ensure a working environment free of discrimination or harassment and where all employees are treated with dignity and respect [Page no. 69], an extensive internal review of ESG topics previously identified in a detailed ESG materiality survey conducted by ESG advisors from Nasdaq Corporate Solutions [Page no. 16], a 12-week-long fellowship program that focuses on youth leadership [Page no. 21], and a focus on improving the diverse representation of the workforce, linking a portion of executive compensation to diversity targets, and recognizing and reinforcing inclusive behavior in the organization [Page no. 33].",
|
222 |
+
"What are the main contributions of this study?": "This study focuses on improving the diverse representation of the workforce, linking a portion of executive compensation to diversity targets, recognizing and reinforcing inclusive behavior in the organization, creating several different categories of awards, and focusing on gender advancement, enhancing inclusivity and mental wellness. [Page no. 33] It also works toward improving gender representation in the organization across levels, runs multiple recruitment initiatives, and focuses on encouraging reading among schoolchildren through the management of 17 community libraries and 176 school libraries in India and one school library in China. [Page no. 19] Additionally, WNS has signed a letter of commitment with the Science Based Targets initiative in December 2022, switched to green power in 14 offices in India and Costa Rica, and spent $1,603,967 on community outreach. [Page no. 7]"}
|
223 |
+
|
224 |
+
answer = qna_dic[question]
|
225 |
+
|
226 |
return answer
|
227 |
|
228 |
# pre-defined questions
|
229 |
questions = [
|
230 |
+
"What is the total scope 1 GHG emission?",
|
231 |
+
"What is the total scope 2 GHG emission?",
|
232 |
+
"What is the total scope 3 GHG emission?",
|
233 |
+
"What are the main results of the study?",
|
234 |
+
"What are the main contributions of this study?",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
]
|
236 |
|
237 |
|