Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -26,6 +26,8 @@ def run(question):
|
|
| 26 |
if "Could not parse LLM output:" in ve.args[0] and question.lower().startswith(tuple(question_starters)) and not question.lower().endswith('?'):
|
| 27 |
question = question + '?'
|
| 28 |
result = agent_chain.run(question)
|
|
|
|
|
|
|
| 29 |
|
| 30 |
return result
|
| 31 |
|
|
|
|
| 26 |
if "Could not parse LLM output:" in ve.args[0] and question.lower().startswith(tuple(question_starters)) and not question.lower().endswith('?'):
|
| 27 |
question = question + '?'
|
| 28 |
result = agent_chain.run(question)
|
| 29 |
+
finally:
|
| 30 |
+
print(result)
|
| 31 |
|
| 32 |
return result
|
| 33 |
|