Spaces:
Running
Running
Nifemi Alpine Durin
commited on
Commit
·
daf848f
1
Parent(s):
cc56263
fix
Browse files
app.py
CHANGED
@@ -109,15 +109,15 @@ js = f'''
|
|
109 |
|
110 |
function js() {{
|
111 |
|
112 |
-
|
113 |
window.set_cookie = function(key, value) {{
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
}}
|
122 |
}}
|
123 |
'''
|
@@ -148,7 +148,7 @@ with gr.Blocks(analytics_enabled=False) as iface:
|
|
148 |
lines=10,
|
149 |
placeholder="Enter your Brand and campaign details here",
|
150 |
label="Campaign Details",
|
151 |
-
|
152 |
)
|
153 |
|
154 |
campaign_details_input.change(
|
|
|
109 |
|
110 |
function js() {{
|
111 |
|
112 |
+
// let default_value = '{escaped_default_value}';
|
113 |
window.set_cookie = function(key, value) {{
|
114 |
+
// if (!key || !value || value.length < 20) {{
|
115 |
+
// console.log("Cannot set cookie, key or value is undefined or null", key, value);
|
116 |
+
// console.log("default value set to: ", default_value);
|
117 |
+
// return [default_value];
|
118 |
+
// }}
|
119 |
+
// document.cookie = key + '=' + value + '; Path=/; SameSite=Strict';
|
120 |
+
// return [value];
|
121 |
}}
|
122 |
}}
|
123 |
'''
|
|
|
148 |
lines=10,
|
149 |
placeholder="Enter your Brand and campaign details here",
|
150 |
label="Campaign Details",
|
151 |
+
value=""
|
152 |
)
|
153 |
|
154 |
campaign_details_input.change(
|