qiqiWav commited on
Commit
bba1d00
β€’
1 Parent(s): 566a1ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -61,8 +61,18 @@ iface = gr.Interface(
61
  allow_flagging="never"
62
  )
63
 
 
 
 
 
 
 
 
 
 
 
64
  theme = gr.themes.Base(text_size="lg")
65
- with gr.Blocks(theme=theme) as demo:
66
  gr.Markdown(value="### πŸ”” You must be logged in to use this service.")
67
  gr.LoginButton(min_width=250)
68
  iface.render()
 
61
  allow_flagging="never"
62
  )
63
 
64
+ head = f"""
65
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-55J2KVJH6R"></script>
66
+ <script>
67
+ window.dataLayer = window.dataLayer || [];
68
+ function gtag(){{dataLayer.push(arguments);}}
69
+ gtag('js', new Date());
70
+ gtag('config', 'G-55J2KVJH6R');
71
+ </script>
72
+ """
73
+
74
  theme = gr.themes.Base(text_size="lg")
75
+ with gr.Blocks(theme=theme, head=head) as demo:
76
  gr.Markdown(value="### πŸ”” You must be logged in to use this service.")
77
  gr.LoginButton(min_width=250)
78
  iface.render()