Spaces:
Running
Running
yuta0306
commited on
Commit
•
4f47580
1
Parent(s):
e6d3676
update ui
Browse files- fam/ui/app.py +14 -1
fam/ui/app.py
CHANGED
@@ -116,7 +116,19 @@ We are releasing our model under the Apache 2.0 license. Our inference and model
|
|
116 |
Kotoba Technologies is committing on developing speech foundation models, and we’ll continue releasing our models. Please join [our discord](https://discord.gg/qPVFqhGN7Z) to contribute to out community.
|
117 |
"""
|
118 |
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
gr.Markdown(title)
|
121 |
|
122 |
with gr.Row():
|
@@ -194,6 +206,7 @@ with gr.Blocks(title="TTS by Kotoba-Speech") as demo:
|
|
194 |
inputs=[to_say, top_p, guidance, toggle, preset_dropdown, upload_target, record_target],
|
195 |
outputs=speech,
|
196 |
)
|
|
|
197 |
|
198 |
|
199 |
demo.queue(default_concurrency_limit=2)
|
|
|
116 |
Kotoba Technologies is committing on developing speech foundation models, and we’ll continue releasing our models. Please join [our discord](https://discord.gg/qPVFqhGN7Z) to contribute to out community.
|
117 |
"""
|
118 |
|
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)
|
133 |
|
134 |
with gr.Row():
|
|
|
206 |
inputs=[to_say, top_p, guidance, toggle, preset_dropdown, upload_target, record_target],
|
207 |
outputs=speech,
|
208 |
)
|
209 |
+
demo.load(None, js=ga_load)
|
210 |
|
211 |
|
212 |
demo.queue(default_concurrency_limit=2)
|