Yaroslav95 commited on
Commit
3f668eb
·
1 Parent(s): fb601ea
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -113,7 +113,7 @@ def find_best_price(request):
113
  "Example:\n"
114
  "User: I want to print 600 business cards, 6x6 cm size, \n"
115
  "Answer:\n"
116
- "PrinterPronto: Doesn't support custom size\n"
117
  "###\n"
118
  "BannerLord: Total for 600: $524.40\n"
119
  "###\n"
@@ -191,6 +191,8 @@ def render_html_page(chat_text):
191
  """
192
 
193
  for i, description in enumerate(product_descriptions):
 
 
194
  image = images[i % len(images)]
195
  with open(image, "rb") as img_file:
196
  base64_image = base64.b64encode(img_file.read()).decode("utf-8")
 
113
  "Example:\n"
114
  "User: I want to print 600 business cards, 6x6 cm size, \n"
115
  "Answer:\n"
116
+ "PrintPronto: Doesn't support custom size\n"
117
  "###\n"
118
  "BannerLord: Total for 600: $524.40\n"
119
  "###\n"
 
191
  """
192
 
193
  for i, description in enumerate(product_descriptions):
194
+ if "Doesn't support custom size" in description:
195
+ continue
196
  image = images[i % len(images)]
197
  with open(image, "rb") as img_file:
198
  base64_image = base64.b64encode(img_file.read()).decode("utf-8")