dejanseo commited on
Commit
ff6f56c
·
verified ·
1 Parent(s): eecf0ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -61,8 +61,15 @@ def render_intent_bars(labels, percentages):
61
  def main():
62
  st.set_page_config(layout="wide")
63
  st.title("Shopping Intent Classification - SEO by DEJAN")
64
- st.write("Multi-label image classification model [extracted from Chrome](https://dejanmarketing.com/product-image-optimisation-with-chromes-convolutional-neural-network/).
65
- The model can be deployed in an automated pipeline capable of classifying product images in bulk. Enter a URL to fetch and classify all images on the page. Javascript-based website scraping currently unsupported.")
 
 
 
 
 
 
 
66
 
67
  model_url = "https://huggingface.co/dejanseo/shopping-intent/resolve/main/model.tflite"
68
  model_path = "model.tflite"
@@ -83,7 +90,7 @@ def main():
83
  "No Shopping Intent",
84
  "Fashion & Style",
85
  "Home & Garden",
86
- "General"
87
  ]
88
 
89
  for img_url in img_urls:
@@ -106,11 +113,5 @@ def main():
106
  except Exception as e:
107
  st.write(f"Could not process image {img_url}: {e}")
108
 
109
- # Additional information at the end
110
- st.markdown("""
111
- Interested in using this in an automated pipeline for bulk image classification?
112
- Please [book an appointment](https://dejanmarketing.com/conference/) to discuss your needs.
113
- """)
114
-
115
  if __name__ == "__main__":
116
  main()
 
61
  def main():
62
  st.set_page_config(layout="wide")
63
  st.title("Shopping Intent Classification - SEO by DEJAN")
64
+ st.write("Enter a URL to fetch and classify all images on the page. Javascript-based website scraping currently unsupported.")
65
+
66
+ st.markdown("""
67
+ Multi-label image classification model [extracted from Chrome](https://dejanmarketing.com/product-image-optimisation-with-chromes-convolutional-neural-network/).
68
+ The model can be deployed in an automated pipeline capable of classifying product images in bulk.
69
+
70
+ Interested in using this in an automated pipeline for bulk image classification?
71
+ Please [book an appointment](https://dejanmarketing.com/conference/) to discuss your needs.
72
+ """)
73
 
74
  model_url = "https://huggingface.co/dejanseo/shopping-intent/resolve/main/model.tflite"
75
  model_path = "model.tflite"
 
90
  "No Shopping Intent",
91
  "Fashion & Style",
92
  "Home & Garden",
93
+ "Tools, Vehicles, Electronics & Appliances"
94
  ]
95
 
96
  for img_url in img_urls:
 
113
  except Exception as e:
114
  st.write(f"Could not process image {img_url}: {e}")
115
 
 
 
 
 
 
 
116
  if __name__ == "__main__":
117
  main()