DebayanDaw commited on
Commit
d7cb3fe
·
1 Parent(s): e71e760

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -165,19 +165,23 @@ def output_generation(typed_ques):
165
  type_of_query = 'dummy'
166
 
167
  if typed_ques == "Hello" :
168
- answe = "Do you have myGovID or wnat to continue as Guest."
169
  return out_pu, type_of_query
170
 
171
- elif typed_ques == "I have myGovID":
172
- answe = "Hi User, Please Enter Username"
173
  return out_pu, type_of_query
174
-
175
- elif typed_ques:
176
- answe = "Hi "+ typed_ques + ", Please Enter Password"
 
 
 
 
177
  return out_pu, type_of_query
178
 
179
  else:
180
-
181
  type_of_query= classify_chatgpt(typed_ques, openAI_key)
182
  global recommender
183
  #print(type_of_query)
@@ -193,7 +197,7 @@ def output_generation(typed_ques):
193
  out_pu = question_answer(question= typed_ques, openAI_key= openAI_key)
194
  #print(out_pu)
195
  return out_pu, type_of_query
196
-
197
 
198
  title = 'CDI Citizen Intelligence 360 Tool: Tax Advisory'
199
  #description = """ Citizen Intelligence 360 sources data from various government agencies and makes it accessible to citizens in a user-friendly format. This can help citizens better understand how their local government works and stay informed about important initiatives and changes in their communities. Citizen Intelligence 360 is a citizen intelligence tool that uses mapping technology to provide citizens with access to government data, performance report and other civic information. It helps to increase transparency and accountability in local government, and empowers citizens to make informed decisions and participate in the democratic process."""
 
165
  type_of_query = 'dummy'
166
 
167
  if typed_ques == "Hello" :
168
+ out_pu = "Do you want to continue with myGovID or as Guest."
169
  return out_pu, type_of_query
170
 
171
+ elif typed_ques == "myGovID":
172
+ out_pu = "Hi User, Please Enter Your Username"
173
  return out_pu, type_of_query
174
+
175
+ elif len(typed_ques.split('.')) == 2:
176
+ out_pu = "Please enter your password"
177
+ return out_pu, type_of_query
178
+
179
+ elif typed_ques.isdigit() or typed_ques == "Guest":
180
+ out_pu = "Welcome to Tax GenAI, Please ask your question"
181
  return out_pu, type_of_query
182
 
183
  else:
184
+
185
  type_of_query= classify_chatgpt(typed_ques, openAI_key)
186
  global recommender
187
  #print(type_of_query)
 
197
  out_pu = question_answer(question= typed_ques, openAI_key= openAI_key)
198
  #print(out_pu)
199
  return out_pu, type_of_query
200
+
201
 
202
  title = 'CDI Citizen Intelligence 360 Tool: Tax Advisory'
203
  #description = """ Citizen Intelligence 360 sources data from various government agencies and makes it accessible to citizens in a user-friendly format. This can help citizens better understand how their local government works and stay informed about important initiatives and changes in their communities. Citizen Intelligence 360 is a citizen intelligence tool that uses mapping technology to provide citizens with access to government data, performance report and other civic information. It helps to increase transparency and accountability in local government, and empowers citizens to make informed decisions and participate in the democratic process."""