Andy Lau commited on
Commit
e1e4877
·
1 Parent(s): fda7ac5

updated format

Browse files
Files changed (1) hide show
  1. app.py +6 -17
app.py CHANGED
@@ -1,5 +1,3 @@
1
- from configparser import ConfigParser
2
- from tkinter.tix import COLUMN
3
  import streamlit as st
4
  import numpy as np
5
  import pandas as pd
@@ -15,9 +13,8 @@ import botocore
15
  from botocore import UNSIGNED
16
  from botocore.config import Config
17
 
18
- # Plotly
19
  import plotly.graph_objects as go
20
-
21
  from bokeh.models.widgets import Div
22
 
23
 
@@ -226,26 +223,18 @@ with stats_col4:
226
  # ---- Model Information -----------
227
  # info_col1, info_col2, info_col3 = st.columns([1,1,1])
228
  with st.sidebar:
 
 
229
 
230
- url_button('Model Homepage','https://www.loxz.com/#/models/IO')
231
- st.text('')
232
-
233
 
234
- # with info_col2:
235
  url_button('Full Report','https://resources.loxz.com/reports/image-optimization-model')
236
- st.text('')
237
-
238
- # with info_col3:
239
  url_button('Amazon Market Place','https://aws.amazon.com/marketplace')
240
- st.text('')
241
-
242
 
243
 
244
- with st.expander('Model Description', expanded=False):
245
- st.markdown('Adding an image to an email campaign that will provide optimal engagement metrics can be challenging. How do you know which image to upload to your HTML, that will make an impact or significantly move the needle? And why would this image garner the best engagement? This model seeks to help campaign engineers understand which images affect their user engagement rate the most. The specific model is implemented using ResNet 18 and ResNet 34 for image embeddings extraction, and then we used these image embeddings as further inputs into a Gradient Boosted Tree model to generate probabilities on a user-specified target variable. The base model was adapted to car images and accurately predicted the user engagement rates with 91% accuracy. This model is adaptable for any large-scale marketing campaign using images. This model will identify the best images for optimal engagement for an email marketing campaign and serve engagement metrics prior to campaign launch. The model serves up several different images in milliseconds, so the campaign engineer understands which image to select in the campaign for optimized engagement.')
246
 
247
- with st.expander('Model Information', expanded=False):
248
- st.table(table_data())
249
 
250
  uploaded_file = st.file_uploader("Upload an image", type=["png", "jpg", "jpeg"])
251
 
 
 
 
1
  import streamlit as st
2
  import numpy as np
3
  import pandas as pd
 
13
  from botocore import UNSIGNED
14
  from botocore.config import Config
15
 
16
+ # Plotly and Bokeh
17
  import plotly.graph_objects as go
 
18
  from bokeh.models.widgets import Div
19
 
20
 
 
223
  # ---- Model Information -----------
224
  # info_col1, info_col2, info_col3 = st.columns([1,1,1])
225
  with st.sidebar:
226
+ with st.expander('Model Description', expanded=False):
227
+ st.markdown('Adding an image to an email campaign that will provide optimal engagement metrics can be challenging. How do you know which image to upload to your HTML, that will make an impact or significantly move the needle? And why would this image garner the best engagement? This model seeks to help campaign engineers understand which images affect their user engagement rate the most. The specific model is implemented using ResNet 18 and ResNet 34 for image embeddings extraction, and then we used these image embeddings as further inputs into a Gradient Boosted Tree model to generate probabilities on a user-specified target variable. The base model was adapted to car images and accurately predicted the user engagement rates with 91% accuracy. This model is adaptable for any large-scale marketing campaign using images. This model will identify the best images for optimal engagement for an email marketing campaign and serve engagement metrics prior to campaign launch. The model serves up several different images in milliseconds, so the campaign engineer understands which image to select in the campaign for optimized engagement.')
228
 
229
+ with st.expander('Model Information', expanded=False):
230
+ st.table(table_data())
 
231
 
232
+ url_button('Model Homepage','https://www.loxz.com/#/models/IO')
233
  url_button('Full Report','https://resources.loxz.com/reports/image-optimization-model')
 
 
 
234
  url_button('Amazon Market Place','https://aws.amazon.com/marketplace')
 
 
235
 
236
 
 
 
237
 
 
 
238
 
239
  uploaded_file = st.file_uploader("Upload an image", type=["png", "jpg", "jpeg"])
240