cyberkyne commited on
Commit
aff446c
Β·
verified Β·
1 Parent(s): 0d3968d

Upload 13 files

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +2 -2
  3. requirements.txt +8 -5
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ“Š
4
  colorFrom: green
5
  colorTo: gray
6
  sdk: gradio
7
- sdk_version: 5.9.1
8
  app_file: app.py
9
  pinned: true
10
  license: mit
 
4
  colorFrom: green
5
  colorTo: gray
6
  sdk: gradio
7
+ sdk_version: 4.42.0
8
  app_file: app.py
9
  pinned: true
10
  license: mit
app.py CHANGED
@@ -59,7 +59,7 @@ def refresh_kb():
59
  # TAB 1 β€” UPLOAD & EXTRACT
60
  # ═══════════════════════════════════════════════════
61
 
62
- def run_extraction(pdf_files, progress=gr.Progress()):
63
  """Full extraction pipeline for uploaded PDFs."""
64
  if not pdf_files:
65
  return "⚠️ No PDFs uploaded.", ""
@@ -242,7 +242,7 @@ def run_backtests(
242
  strategy_filter,
243
  max_strategies,
244
  viable_only_push,
245
- progress=gr.Progress(),
246
  ):
247
  if not cfg.HF_TICK_REPO:
248
  return "❌ HF_TICK_REPO secret not set.", ""
 
59
  # TAB 1 β€” UPLOAD & EXTRACT
60
  # ═══════════════════════════════════════════════════
61
 
62
+ def run_extraction(pdf_files, progress=gr.Progress(track_tqdm=True)):
63
  """Full extraction pipeline for uploaded PDFs."""
64
  if not pdf_files:
65
  return "⚠️ No PDFs uploaded.", ""
 
242
  strategy_filter,
243
  max_strategies,
244
  viable_only_push,
245
+ progress=gr.Progress(track_tqdm=True),
246
  ):
247
  if not cfg.HF_TICK_REPO:
248
  return "❌ HF_TICK_REPO secret not set.", ""
requirements.txt CHANGED
@@ -1,9 +1,12 @@
1
- # Gradio 5.x + huggingface_hub 0.26.x are compatible
2
- # gradio 4.x broke because HfFolder was removed from huggingface_hub>=0.24
3
- gradio==5.9.1
4
- huggingface_hub==0.26.5
5
- datasets>=2.20.0
 
 
6
  anthropic>=0.30.0
 
7
 
8
  # PDF processing
9
  pypdf>=4.2.0
 
1
+ # Pinned to last known-good compatible pair.
2
+ # gradio 4.42.0 needs huggingface_hub < 0.24 (HfFolder still exists there).
3
+ # gradio 5.x introduced a gradio_client bug with dict-typed components.
4
+ gradio==4.42.0
5
+ huggingface_hub==0.23.4
6
+ gradio_client==0.9.0
7
+
8
  anthropic>=0.30.0
9
+ datasets>=2.20.0
10
 
11
  # PDF processing
12
  pypdf>=4.2.0