Update ui/dashboard.py
#1
by shamsheer-cmd - opened
- ui/dashboard.py +4 -1
ui/dashboard.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from .logic import (
|
|
|
|
|
|
|
|
|
|
| 3 |
interact_with_env, accept_inbound_call,
|
| 4 |
get_match_files, on_load_file, prev_episode, next_episode,
|
| 5 |
load_match_summary, get_model_info_md, auto_play_episode,
|
|
@@ -69,7 +72,7 @@ TOGGLE_THEME_JS = """
|
|
| 69 |
}
|
| 70 |
"""
|
| 71 |
|
| 72 |
-
with gr.Blocks(title="RLEaaS — RL-ADA Arena") as demo:
|
| 73 |
|
| 74 |
with gr.Row():
|
| 75 |
gr.HTML(
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from .logic import (
|
| 3 |
+
# Google Analytics 4 tracking (injected into page <head>)
|
| 4 |
+
GA_HEAD = """<script async src="https://www.googletagmanager.com/gtag/js?id=G-W0PWKTFD1G"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-W0PWKTFD1G');</script>"""
|
| 5 |
+
|
| 6 |
interact_with_env, accept_inbound_call,
|
| 7 |
get_match_files, on_load_file, prev_episode, next_episode,
|
| 8 |
load_match_summary, get_model_info_md, auto_play_episode,
|
|
|
|
| 72 |
}
|
| 73 |
"""
|
| 74 |
|
| 75 |
+
with gr.Blocks(head=GA_HEAD, title="RLEaaS — RL-ADA Arena") as demo:
|
| 76 |
|
| 77 |
with gr.Row():
|
| 78 |
gr.HTML(
|