qq1023 commited on
Commit
65aa7c9
·
1 Parent(s): 2fca3c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -149,13 +149,7 @@ def parse(category, chatbot):
149
 
150
 
151
 
152
- if chatbot:
153
- if len(chatbot) > 0:
154
- answer = chatbot[0][1]
155
- else:
156
- answer = ""
157
- else:
158
- answer = ""
159
 
160
  if category not in Category.__members__:
161
  # Handle the case when an invalid category is provided
 
149
 
150
 
151
 
152
+ answer = chatbot[0][1]
 
 
 
 
 
 
153
 
154
  if category not in Category.__members__:
155
  # Handle the case when an invalid category is provided