Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -192,15 +192,19 @@ def loop_function(df):
|
|
| 192 |
|
| 193 |
if i == 1:
|
| 194 |
try:
|
|
|
|
|
|
|
| 195 |
text += """
|
| 196 |
<div style="color: white !important; background: #006400 !important; padding: 10px; font-size: 14px;">
|
| 197 |
-
|
| 198 |
"""
|
| 199 |
-
text +=
|
| 200 |
-
|
|
|
|
|
|
|
| 201 |
rr_html=generate_html(rr)
|
| 202 |
text += rr_html
|
| 203 |
-
text += "</table><hr>"
|
| 204 |
yield text
|
| 205 |
time.sleep(3)
|
| 206 |
except Exception as e:
|
|
|
|
| 192 |
|
| 193 |
if i == 1:
|
| 194 |
try:
|
| 195 |
+
rr = generate_response(manual_rules, proposal_details)
|
| 196 |
+
|
| 197 |
text += """
|
| 198 |
<div style="color: white !important; background: #006400 !important; padding: 10px; font-size: 14px;">
|
| 199 |
+
|
| 200 |
"""
|
| 201 |
+
text +="<h2>"+rr+"</h2>"
|
| 202 |
+
text +="<h2>Same is given below in table format....</h2>"
|
| 203 |
+
text += "<table><tr><td>As per proposal, "+key + " </td><td> "+value+"</td></tr>"
|
| 204 |
+
|
| 205 |
rr_html=generate_html(rr)
|
| 206 |
text += rr_html
|
| 207 |
+
text += "</table></div><hr>"
|
| 208 |
yield text
|
| 209 |
time.sleep(3)
|
| 210 |
except Exception as e:
|