Spaces:
Sleeping
Sleeping
vishal1278
commited on
Commit
•
25191b2
1
Parent(s):
5b169d1
removed hero image
Browse files
app.py
CHANGED
@@ -24,19 +24,7 @@ def process_customer_selection(customer_name, campaign_name):
|
|
24 |
summary = generate_summary(customer_data)
|
25 |
message = generate_welcome_message(summary, campaign_name)
|
26 |
|
27 |
-
|
28 |
-
if campaign_name == "Summer Clearance":
|
29 |
-
campaign_image = "../img/strung-beads.png"
|
30 |
-
elif campaign_name == "Makehaul":
|
31 |
-
campaign_image = "../img/canvas.png"
|
32 |
-
elif campaign_name == "Lowest Prices Of the Season":
|
33 |
-
campaign_image = "../img/photo-keeper.png"
|
34 |
-
else:
|
35 |
-
print("Invalid Campaign Name")
|
36 |
-
|
37 |
-
image = Image.open(campaign_image)
|
38 |
-
|
39 |
-
return summary, message, image
|
40 |
|
41 |
|
42 |
def create_gradio_app():
|
@@ -51,7 +39,6 @@ def create_gradio_app():
|
|
51 |
outputs=[
|
52 |
gr.Textbox(label="Customer Summary [Input]"),
|
53 |
gr.Textbox(label="Personalized Welcome Message [Output]"),
|
54 |
-
gr.Image(label="Campaign Hero Product"),
|
55 |
],
|
56 |
title="Personalized Email Content Generator",
|
57 |
)
|
|
|
24 |
summary = generate_summary(customer_data)
|
25 |
message = generate_welcome_message(summary, campaign_name)
|
26 |
|
27 |
+
return summary, message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
|
30 |
def create_gradio_app():
|
|
|
39 |
outputs=[
|
40 |
gr.Textbox(label="Customer Summary [Input]"),
|
41 |
gr.Textbox(label="Personalized Welcome Message [Output]"),
|
|
|
42 |
],
|
43 |
title="Personalized Email Content Generator",
|
44 |
)
|