Skip to content

Commit aa0f3bf

Browse files
abidlabsclaudegradio-pr-bot
authored
Fix video logging by adding TRACKIO_DIR to allowed_paths (#312)
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
1 parent f6bdd62 commit aa0f3bf

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.changeset/witty-teeth-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trackio": patch
3+
---
4+
5+
feat:Fix video logging by adding TRACKIO_DIR to allowed_paths

trackio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def init(
139139
prevent_thread_lock=True,
140140
show_error=True,
141141
favicon_path=TRACKIO_LOGO_DIR / "trackio_logo_light.png",
142-
allowed_paths=[TRACKIO_LOGO_DIR],
142+
allowed_paths=[TRACKIO_LOGO_DIR, TRACKIO_DIR],
143143
)
144144
else:
145145
url = space_id
@@ -315,7 +315,7 @@ def show(
315315
inline=False,
316316
prevent_thread_lock=True,
317317
favicon_path=TRACKIO_LOGO_DIR / "trackio_logo_light.png",
318-
allowed_paths=[TRACKIO_LOGO_DIR],
318+
allowed_paths=[TRACKIO_LOGO_DIR, TRACKIO_DIR],
319319
mcp_server=_mcp_server,
320320
)
321321

trackio/ui/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,4 +1209,8 @@ def render_grouped_runs(project, group_key, filter_text, selection):
12091209
run_detail_page.write_token = write_token
12101210

12111211
if __name__ == "__main__":
1212-
demo.launch(allowed_paths=[utils.TRACKIO_LOGO_DIR], show_api=False, show_error=True)
1212+
demo.launch(
1213+
allowed_paths=[utils.TRACKIO_LOGO_DIR, utils.TRACKIO_DIR],
1214+
show_api=False,
1215+
show_error=True,
1216+
)

0 commit comments

Comments
 (0)