Spaces:
Sleeping
Sleeping
Upload 13 files
Browse files- README.md +1 -1
- app.py +2 -2
- requirements.txt +8 -5
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: π
|
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 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 |
-
#
|
| 2 |
-
# gradio 4.
|
| 3 |
-
gradio
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
| 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
|