Spaces:
Running
Running
Update Webpage.py
Browse files- Webpage.py +4 -4
Webpage.py
CHANGED
@@ -110,7 +110,7 @@ with gr.Blocks() as demo:
|
|
110 |
gr.Interface(
|
111 |
fn=attention,
|
112 |
inputs=[gr.Markdown("""
|
113 |
-
Instruction:
|
114 |
1. Click to upload or drag the entire image that contains BOTH ad and its context;
|
115 |
2. Draw bounding boxes in the order of: (each element can have more than 1 boxes; remember the number of boxes for each element you draw)
|
116 |
(a) Brand element(s) (skip if N.A.)
|
@@ -119,7 +119,7 @@ with gr.Blocks() as demo:
|
|
119 |
(d) The advertisement.
|
120 |
3. Put in number of bounding boxes for each element, product category, ad location and attention type.
|
121 |
|
122 |
-
NOTE
|
123 |
|
124 |
Two example ads are avialable for download: """),
|
125 |
gr.DownloadButton(label="Download Example Image 1 of Ad and Context", value='Demo/Ad_Example1.jpg'),
|
@@ -132,10 +132,10 @@ with gr.Blocks() as demo:
|
|
132 |
gr.Dropdown(LOCATIONS, label='Ad Location'),
|
133 |
gr.Dropdown(GAZE_TYPE, label='Gaze Type')
|
134 |
],
|
135 |
-
outputs=[gr.Number(label="Predicted Gaze (sec"),
|
136 |
gr.Image(label="ResNet50 Heatmap"),
|
137 |
gr.Textbox(label="Heatmap Info")],
|
138 |
-
title="Gazer 1.0: Ad Attention Prediction",
|
139 |
description="""This app accompanies: "Contextual Advertising with Theory-Informed Machine Learning", manuscript submitted to the Journal of Marketing.
|
140 |
App Version: 1.0, Date: 10/24/2024.
|
141 |
Note: Gazer 1.0 does not yet include LLM generated ad topics. Future updates will include this in a GPU environment.""",
|
|
|
110 |
gr.Interface(
|
111 |
fn=attention,
|
112 |
inputs=[gr.Markdown("""
|
113 |
+
### Instruction:
|
114 |
1. Click to upload or drag the entire image that contains BOTH ad and its context;
|
115 |
2. Draw bounding boxes in the order of: (each element can have more than 1 boxes; remember the number of boxes for each element you draw)
|
116 |
(a) Brand element(s) (skip if N.A.)
|
|
|
119 |
(d) The advertisement.
|
120 |
3. Put in number of bounding boxes for each element, product category, ad location and attention type.
|
121 |
|
122 |
+
***NOTE:*** *ResNet50 Heatmap could take around 20-80 seconds under current CPU environment.*
|
123 |
|
124 |
Two example ads are avialable for download: """),
|
125 |
gr.DownloadButton(label="Download Example Image 1 of Ad and Context", value='Demo/Ad_Example1.jpg'),
|
|
|
132 |
gr.Dropdown(LOCATIONS, label='Ad Location'),
|
133 |
gr.Dropdown(GAZE_TYPE, label='Gaze Type')
|
134 |
],
|
135 |
+
outputs=[gr.Number(label="Predicted Gaze (sec)"),
|
136 |
gr.Image(label="ResNet50 Heatmap"),
|
137 |
gr.Textbox(label="Heatmap Info")],
|
138 |
+
title="""Gazer 1.0: Ad Attention Prediction""",
|
139 |
description="""This app accompanies: "Contextual Advertising with Theory-Informed Machine Learning", manuscript submitted to the Journal of Marketing.
|
140 |
App Version: 1.0, Date: 10/24/2024.
|
141 |
Note: Gazer 1.0 does not yet include LLM generated ad topics. Future updates will include this in a GPU environment.""",
|