Spaces:
Running
Running
tripleS-Dev
commited on
Commit
•
a2c1cdb
1
Parent(s):
ce81eec
update V1.3.5L Beta
Browse files-Preparing to move Objektify.xyz
main.py
CHANGED
@@ -62,7 +62,18 @@ function createGradioAnimation() {
|
|
62 |
"""
|
63 |
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
|
|
|
|
|
|
66 |
|
67 |
confirm_horizontal = "(x) => confirm('Apply horizontal mode?')"
|
68 |
def rst(a):
|
@@ -92,7 +103,7 @@ theme = gr.themes.Soft(
|
|
92 |
login_uri = pre.login_uri
|
93 |
|
94 |
|
95 |
-
with gr.Blocks(theme=theme, js=animation) as demo: # , js=js_func
|
96 |
with gr.Column():
|
97 |
with gr.Row():
|
98 |
gr.Markdown(
|
@@ -372,6 +383,7 @@ with gr.Blocks(theme=theme, js=animation) as demo: # , js=js_func
|
|
372 |
ex_btn.click(fn=generate.ex_gen, inputs=[ex_img_f, ex_file_f, ex_img_b, ex_gen_file_count, ex_hide_blur, ex_hide_blur_range, watermark], outputs=[ex_img_f_out, ex_img_b_out])
|
373 |
demo.load(fn=login_discord.id_check, outputs=[login, dev, rec, userid, beta, preset])
|
374 |
demo.load(fn=preset_fn.refresh, outputs=preset)
|
|
|
375 |
|
376 |
|
377 |
|
|
|
62 |
"""
|
63 |
|
64 |
|
65 |
+
ga_script = """
|
66 |
+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J2J6MBSCQB"></script>
|
67 |
+
"""
|
68 |
+
ga_load = """
|
69 |
+
function() {
|
70 |
+
window.dataLayer = window.dataLayer || [];
|
71 |
+
function gtag(){dataLayer.push(arguments);}
|
72 |
+
gtag('js', new Date());
|
73 |
|
74 |
+
gtag('config', 'G-J2J6MBSCQB');
|
75 |
+
}
|
76 |
+
"""
|
77 |
|
78 |
confirm_horizontal = "(x) => confirm('Apply horizontal mode?')"
|
79 |
def rst(a):
|
|
|
103 |
login_uri = pre.login_uri
|
104 |
|
105 |
|
106 |
+
with gr.Blocks(theme=theme, js=animation, head=ga_script) as demo: # , js=js_func
|
107 |
with gr.Column():
|
108 |
with gr.Row():
|
109 |
gr.Markdown(
|
|
|
383 |
ex_btn.click(fn=generate.ex_gen, inputs=[ex_img_f, ex_file_f, ex_img_b, ex_gen_file_count, ex_hide_blur, ex_hide_blur_range, watermark], outputs=[ex_img_f_out, ex_img_b_out])
|
384 |
demo.load(fn=login_discord.id_check, outputs=[login, dev, rec, userid, beta, preset])
|
385 |
demo.load(fn=preset_fn.refresh, outputs=preset)
|
386 |
+
demo.load(None, js=ga_load)
|
387 |
|
388 |
|
389 |
|