Spaces:
Runtime error
Runtime error
Add startup diagnostics
Browse files
app.py
CHANGED
|
@@ -6,6 +6,8 @@ os.environ.setdefault("MPLCONFIGDIR", "/tmp/matplotlib")
|
|
| 6 |
os.environ.setdefault("GRADIO_ANALYTICS_ENABLED", "False")
|
| 7 |
os.environ.setdefault("GRADIO_SSR_MODE", "false")
|
| 8 |
|
|
|
|
|
|
|
| 9 |
import html
|
| 10 |
import json
|
| 11 |
import math
|
|
@@ -18,6 +20,8 @@ from typing import Any
|
|
| 18 |
import gradio as gr
|
| 19 |
from huggingface_hub import hf_hub_download, list_repo_files
|
| 20 |
|
|
|
|
|
|
|
| 21 |
|
| 22 |
APP_TITLE = "Codex Traces"
|
| 23 |
DATASET_REPO = "Mike0021/codex-sessions"
|
|
@@ -1160,6 +1164,7 @@ html, body, .gradio-container {
|
|
| 1160 |
|
| 1161 |
|
| 1162 |
def build_app() -> gr.Blocks:
|
|
|
|
| 1163 |
choices = _session_choices(live=False)
|
| 1164 |
default = None
|
| 1165 |
initial_summary, initial_transcript, initial_page_info, initial_page = _initial_view(choices)
|
|
@@ -1249,12 +1254,15 @@ def build_app() -> gr.Blocks:
|
|
| 1249 |
show_progress="minimal",
|
| 1250 |
)
|
| 1251 |
|
|
|
|
| 1252 |
return demo
|
| 1253 |
|
| 1254 |
|
| 1255 |
demo = build_app()
|
|
|
|
| 1256 |
|
| 1257 |
if __name__ == "__main__":
|
|
|
|
| 1258 |
demo.launch(
|
| 1259 |
theme=gr.themes.Base(
|
| 1260 |
primary_hue="blue",
|
|
|
|
| 6 |
os.environ.setdefault("GRADIO_ANALYTICS_ENABLED", "False")
|
| 7 |
os.environ.setdefault("GRADIO_SSR_MODE", "false")
|
| 8 |
|
| 9 |
+
print("codex-traces startup: env configured", flush=True)
|
| 10 |
+
|
| 11 |
import html
|
| 12 |
import json
|
| 13 |
import math
|
|
|
|
| 20 |
import gradio as gr
|
| 21 |
from huggingface_hub import hf_hub_download, list_repo_files
|
| 22 |
|
| 23 |
+
print("codex-traces startup: imports complete", flush=True)
|
| 24 |
+
|
| 25 |
|
| 26 |
APP_TITLE = "Codex Traces"
|
| 27 |
DATASET_REPO = "Mike0021/codex-sessions"
|
|
|
|
| 1164 |
|
| 1165 |
|
| 1166 |
def build_app() -> gr.Blocks:
|
| 1167 |
+
print("codex-traces startup: building app", flush=True)
|
| 1168 |
choices = _session_choices(live=False)
|
| 1169 |
default = None
|
| 1170 |
initial_summary, initial_transcript, initial_page_info, initial_page = _initial_view(choices)
|
|
|
|
| 1254 |
show_progress="minimal",
|
| 1255 |
)
|
| 1256 |
|
| 1257 |
+
print("codex-traces startup: app built", flush=True)
|
| 1258 |
return demo
|
| 1259 |
|
| 1260 |
|
| 1261 |
demo = build_app()
|
| 1262 |
+
print("codex-traces startup: demo ready", flush=True)
|
| 1263 |
|
| 1264 |
if __name__ == "__main__":
|
| 1265 |
+
print("codex-traces startup: launching", flush=True)
|
| 1266 |
demo.launch(
|
| 1267 |
theme=gr.themes.Base(
|
| 1268 |
primary_hue="blue",
|