Spaces:
Running
Running
Sakshi
commited on
Commit
·
f74e0b9
1
Parent(s):
50a0334
pitching full suggestion
Browse files
app.py
CHANGED
@@ -107,7 +107,8 @@ def main():
|
|
107 |
suggestion = next(
|
108 |
(item for item in response if item.get("stage") == "SUGGEST"), None
|
109 |
)['response']
|
110 |
-
suggestion = suggestion.split('<POLICY_PITCH>')[-1].split('</POLICY_PITCH>')[0]
|
|
|
111 |
text = next(
|
112 |
(item for item in response if item.get("stage") == "OCR"), None
|
113 |
)['response']
|
|
|
107 |
suggestion = next(
|
108 |
(item for item in response if item.get("stage") == "SUGGEST"), None
|
109 |
)['response']
|
110 |
+
# suggestion = suggestion.split('<POLICY_PITCH>')[-1].split('</POLICY_PITCH>')[0]
|
111 |
+
suggestion = suggestion.replace('<POLICY_PITCH>', '').replace('</POLICY_PITCH>')
|
112 |
text = next(
|
113 |
(item for item in response if item.get("stage") == "OCR"), None
|
114 |
)['response']
|