Spaces:
Sleeping
Sleeping
Commit ·
4d7f560
1
Parent(s): 5a4f643
Fix parse with prompt
Browse files
app.py
CHANGED
|
@@ -132,7 +132,7 @@ def parse_from_category(category, extracted_text):
|
|
| 132 |
answer = result.generations[0][0].text
|
| 133 |
print("\tProcessed text")
|
| 134 |
try:
|
| 135 |
-
information = chain.output_parser.parse_with_prompt(answer)
|
| 136 |
information = information.json() if information else {}
|
| 137 |
information['retry'] = True
|
| 138 |
except OutputParserException as e:
|
|
|
|
| 132 |
answer = result.generations[0][0].text
|
| 133 |
print("\tProcessed text")
|
| 134 |
try:
|
| 135 |
+
information = chain.output_parser.parse_with_prompt(answer, formatted_prompt)
|
| 136 |
information = information.json() if information else {}
|
| 137 |
information['retry'] = True
|
| 138 |
except OutputParserException as e:
|