nmcamacho commited on
Commit
6952a2a
·
verified ·
1 Parent(s): a63e8a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -120,13 +120,23 @@ CRM context (for your understanding, do not copy verbatim):
120
  output_text = re.sub(r"```html|```", "", output_text)
121
  output_text = output_text.strip()
122
 
 
 
 
 
 
 
 
 
123
  html = f"""
124
  <div style='font-family:Arial,sans-serif;max-width:700px;margin:auto;padding:24px;background:#ffffff;
125
  border-radius:12px;box-shadow:0 3px 10px rgba(0,0,0,0.1);'>
126
  <img src="{image_url}" style="width:100%;border-radius:8px;margin-bottom:20px;">
127
  {output_text}
 
128
  </div>
129
  """
 
130
  return html
131
 
132
  # Build Gradio app (unchanged, apart from column updates)
 
120
  output_text = re.sub(r"```html|```", "", output_text)
121
  output_text = output_text.strip()
122
 
123
+ clinic_note = f"""
124
+ <div style='margin-top:20px;padding:10px;font-size:13px;color:gray;
125
+ border-top:1px solid #ddd;'>
126
+ 📌 Target: <b>{account_name}</b> (Region: {row.get('Region', 'N/A')},
127
+ Focus: {row.get('Recent_Interaction_Focus', 'N/A')})
128
+ </div>
129
+ """
130
+
131
  html = f"""
132
  <div style='font-family:Arial,sans-serif;max-width:700px;margin:auto;padding:24px;background:#ffffff;
133
  border-radius:12px;box-shadow:0 3px 10px rgba(0,0,0,0.1);'>
134
  <img src="{image_url}" style="width:100%;border-radius:8px;margin-bottom:20px;">
135
  {output_text}
136
+ {clinic_note}
137
  </div>
138
  """
139
+
140
  return html
141
 
142
  # Build Gradio app (unchanged, apart from column updates)