Spaces:
Running
Running
Update Webpage.py
Browse files- Webpage.py +6 -6
Webpage.py
CHANGED
@@ -50,12 +50,12 @@ def attention(whole_display_prompt, ad, context,
|
|
50 |
training_ad_text_dictionary_path = '../XGBoost_Prediction_Model/LDA_Model_trained/object_word_dictionary'
|
51 |
training_lang_preposition_path = '../XGBoost_Prediction_Model/LDA_Model_trained/dutch_preposition'
|
52 |
|
53 |
-
caption_ad = XGBoost_utils.Caption_Generation(ad)
|
54 |
-
caption_context = XGBoost_utils.Caption_Generation(context)
|
55 |
-
ad_topic = XGBoost_utils.Topic_emb(caption_ad)
|
56 |
-
ctpg_topic = XGBoost_utils.Topic_emb(caption_context)
|
57 |
-
|
58 |
-
|
59 |
|
60 |
prod_group = np.zeros(38)
|
61 |
prod_group[GENERAL_CATEGORY[category]] = 1
|
|
|
50 |
training_ad_text_dictionary_path = '../XGBoost_Prediction_Model/LDA_Model_trained/object_word_dictionary'
|
51 |
training_lang_preposition_path = '../XGBoost_Prediction_Model/LDA_Model_trained/dutch_preposition'
|
52 |
|
53 |
+
# caption_ad = XGBoost_utils.Caption_Generation(ad)
|
54 |
+
# caption_context = XGBoost_utils.Caption_Generation(context)
|
55 |
+
# ad_topic = XGBoost_utils.Topic_emb(caption_ad)
|
56 |
+
# ctpg_topic = XGBoost_utils.Topic_emb(caption_context)
|
57 |
+
ad_topic = np.random.randn(1,768)
|
58 |
+
ctpg_topic = np.random.randn(1,768)
|
59 |
|
60 |
prod_group = np.zeros(38)
|
61 |
prod_group[GENERAL_CATEGORY[category]] = 1
|