Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,10 @@ def parse(category, chatbot):
|
|
149 |
|
150 |
|
151 |
|
152 |
-
|
|
|
|
|
|
|
153 |
|
154 |
if category not in Category.__members__:
|
155 |
# Handle the case when an invalid category is provided
|
|
|
149 |
|
150 |
|
151 |
|
152 |
+
try:
|
153 |
+
answer = next(chatbot)[1]
|
154 |
+
except StopIteration:
|
155 |
+
answer = ""
|
156 |
|
157 |
if category not in Category.__members__:
|
158 |
# Handle the case when an invalid category is provided
|