yuta0306 commited on
Commit
a113e94
1 Parent(s): 4f47580

fix header

Browse files
Files changed (1) hide show
  1. fam/ui/app.py +10 -8
fam/ui/app.py CHANGED
@@ -119,14 +119,16 @@ Kotoba Technologies is committing on developing speech foundation models, and we
119
  ga_id = os.getenv("ga_id")
120
  ga_script = f"<script async src=\"https://www.googletagmanager.com/gtag/js?id={ga_id}\"></script>"
121
 
122
- ga_load = ""
123
- "<script>"
124
- " window.dataLayer = window.dataLayer || [];"
125
- " function gtag(){dataLayer.push(arguments);}"
126
- " gtag('js', new Date());"
127
- ""
128
- f" gtag('config', '{ga_id}');"
129
- "</script>"
 
 
130
 
131
  with gr.Blocks(title="TTS by Kotoba-Speech", head=ga_script) as demo:
132
  gr.Markdown(title)
 
119
  ga_id = os.getenv("ga_id")
120
  ga_script = f"<script async src=\"https://www.googletagmanager.com/gtag/js?id={ga_id}\"></script>"
121
 
122
+ ga_load = """
123
+ <script>
124
+ window.dataLayer = window.dataLayer || [];
125
+ function gtag(){{dataLayer.push(arguments);}}
126
+ gtag('js', new Date());
127
+
128
+ gtag('config', '{ga_id}');
129
+ </script>
130
+ """
131
+ ga_load = ga_load.format_map({"ga_id": ga_id})
132
 
133
  with gr.Blocks(title="TTS by Kotoba-Speech", head=ga_script) as demo:
134
  gr.Markdown(title)