Spaces:
Sleeping
Sleeping
arjunanand13
commited on
Commit
•
17d7c3a
1
Parent(s):
c42f5d4
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)
|