Update app.py
Browse files
app.py
CHANGED
|
@@ -80,15 +80,26 @@ def contextual_pitch_assistant(csv_file, query):
|
|
| 80 |
"""
|
| 81 |
return html
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
app.launch()
|
|
|
|
| 80 |
"""
|
| 81 |
return html
|
| 82 |
|
| 83 |
+
with gr.Blocks(title="Contextual Pitch Assistant for Dental Sales") as app:
|
| 84 |
+
gr.Markdown(
|
| 85 |
+
"""
|
| 86 |
+
# π¦· Contextual Pitch Assistant for Dental Sales
|
| 87 |
+
Upload a CRM file and ask a sales question β get a contextualized email pitch with a generated image.
|
| 88 |
+
"""
|
| 89 |
+
)
|
| 90 |
+
|
| 91 |
+
with gr.Row():
|
| 92 |
+
with gr.Column(scale=1, min_width=300):
|
| 93 |
+
csv_file = gr.File(label="π Upload CRM CSV (5β100 rows)", file_types=[".csv"])
|
| 94 |
+
query = gr.Textbox(
|
| 95 |
+
label="π¬ Sales Query",
|
| 96 |
+
placeholder="e.g. Which clinic is best for our imaging subscription?",
|
| 97 |
+
)
|
| 98 |
+
run_btn = gr.Button("π Generate Pitch")
|
| 99 |
+
with gr.Column(scale=2):
|
| 100 |
+
output = gr.HTML(label="β¨ Email Pitch Preview")
|
| 101 |
+
|
| 102 |
+
run_btn.click(fn=contextual_pitch_assistant, inputs=[csv_file, query], outputs=output)
|
| 103 |
+
|
| 104 |
|
| 105 |
app.launch()
|