broadfield-dev commited on
Commit
ecf413e
·
verified ·
1 Parent(s): 35aea24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -11
app.py CHANGED
@@ -1,15 +1,7 @@
1
  #!/usr/bin/env python3
2
  """
3
- Overthinker v28 — Gradio.Server Backend with SQLite Session Isolation + HF Trace Upload
4
 
5
- Changes from v27:
6
- - Default model reverted to nvidia/nemotron-3-nano-30b-a3b
7
- - Added /upload_trace endpoint that serializes full tree from SQLite and pushes to HF dataset
8
- - Dataset repository configured via HF_DATASET_REPO env var
9
- - HF token via HF_TOKEN env var
10
- - All other features preserved: SQLite per-session, full path context, no fallbacks, no undo/redo
11
-
12
- Port: 7860
13
  """
14
 
15
  import os
@@ -36,7 +28,7 @@ OPENROUTER_URL = "https://openrouter.ai/api/v1/chat/completions"
36
  DEFAULT_MODEL = "nvidia/nemotron-3-nano-30b-a3b"
37
 
38
  HF_TOKEN = os.getenv('HF_TOKEN', '')
39
- HF_DATASET_REPO = os.getenv('HF_DATASET_REPO', '')
40
 
41
  # ---------------------------------------------------------------------------
42
  # Database Helpers
@@ -585,7 +577,7 @@ async def export_path_md(request: dict):
585
  # ---------------------------------------------------------------------------
586
  if __name__ == "__main__":
587
  import requests # needed for sync calls inside async routes
588
- print(f"\U0001f9e0 Overthinker v28 — SQLite Session Mode + HF Trace Upload on port {PORT}")
589
  print(f"\U0001f916 Model: {DEFAULT_MODEL}")
590
  print(f"\U0001f310 Open http://localhost:{PORT} in your browser")
591
  if not OPENROUTER_API_KEY:
 
1
  #!/usr/bin/env python3
2
  """
3
+ Overthinker — Gradio.Server Backend with SQLite Session Isolation + HF Trace Upload
4
 
 
 
 
 
 
 
 
 
5
  """
6
 
7
  import os
 
28
  DEFAULT_MODEL = "nvidia/nemotron-3-nano-30b-a3b"
29
 
30
  HF_TOKEN = os.getenv('HF_TOKEN', '')
31
+ HF_DATASET_REPO = os.getenv('HF_DATASET_REPO', 'broadfield-dev/Overthinker-traces')
32
 
33
  # ---------------------------------------------------------------------------
34
  # Database Helpers
 
577
  # ---------------------------------------------------------------------------
578
  if __name__ == "__main__":
579
  import requests # needed for sync calls inside async routes
580
+ print(f"\U0001f9e0 Overthinker — SQLite Session Mode + HF Trace Upload on port {PORT}")
581
  print(f"\U0001f916 Model: {DEFAULT_MODEL}")
582
  print(f"\U0001f310 Open http://localhost:{PORT} in your browser")
583
  if not OPENROUTER_API_KEY: