Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ class DocumentRetrievalAndGeneration:
|
|
| 112 |
solution_text = match1.group(1).strip()
|
| 113 |
print(solution_text)
|
| 114 |
if "Solution:" in solution_text:
|
| 115 |
-
|
| 116 |
elif match2:
|
| 117 |
solution_text = match2.group(1).strip()
|
| 118 |
print(solution_text)
|
|
|
|
| 112 |
solution_text = match1.group(1).strip()
|
| 113 |
print(solution_text)
|
| 114 |
if "Solution:" in solution_text:
|
| 115 |
+
solution_text = solution_text.split("Solution:", 1)[1].strip()
|
| 116 |
elif match2:
|
| 117 |
solution_text = match2.group(1).strip()
|
| 118 |
print(solution_text)
|