Skip to content

Commit c5315b6

Browse files
committed
Add full-text AI results report
1 parent 753d7f0 commit c5315b6

4 files changed

Lines changed: 443 additions & 2 deletions

File tree

audit_cgi/fulltext_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var fulltextStatusTemplate = template.Must(template.New("fulltext-status").Funcs
5454
<div class="container">
5555
<div class="card">
5656
<h1>LIG Full-Text AI Processing Status</h1>
57-
<p class="small">This page is public. Humans upload full papers for AI processing at <a href="/cgi-bin/fulltext-upload.cgi?batch={{.Batch.BatchSlug}}">/cgi-bin/fulltext-upload.cgi</a>; login required.</p>
57+
<p class="small">This page is public. Humans upload full papers for AI processing at <a href="/cgi-bin/fulltext-upload.cgi?batch={{.Batch.BatchSlug}}">/cgi-bin/fulltext-upload.cgi</a>; login required. Full-text charts are at <a href="/fulltext.html">/fulltext.html</a>.</p>
5858
<p class="small">Batch <code>{{.Batch.BatchSlug}}</code> · created {{formatTimestamp .Batch.CreatedAt}} · seed {{.Batch.Seed}}</p>
5959
<div class="filters">
6060
<a href="/cgi-bin/fulltext-status.cgi?batch={{.Batch.BatchSlug}}">All</a>

cronscript.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,21 @@ else
105105
log "Skipping lig audit database push because the initial sync failed"
106106
fi
107107

108+
log "Generating full-text AI report..."
109+
if (
110+
cd extractor
111+
uv run generate_fulltext_report.py --output "$DASHBOARD_DIR/fulltext.html"
112+
) 2>&1 | tee -a "$LOG_FILE"; then
113+
log "Full-text AI report generated successfully"
114+
if rsync -avz "$DASHBOARD_DIR/fulltext.html" "$REMOTE_HOST:$REMOTE_PATH/fulltext.html" 2>&1 | tee -a "$LOG_FILE"; then
115+
log "Full-text AI report synced successfully to $REMOTE_HOST:$REMOTE_PATH/fulltext.html"
116+
else
117+
log "Warning: full-text AI report sync failed"
118+
fi
119+
else
120+
log "Warning: full-text AI report generation failed"
121+
fi
122+
108123
# Step 1: Check for completed batches and fetch results
109124
log "Checking for completed batches..."
110125
cd extractor

extractor/generate_dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ def calculate_centered_rolling_average(data, key, window_size=5):
956956
<div class="card">
957957
<h3>Latest Batch</h3>
958958
<div class="value">{fulltext_summary['sample_batch']}</div>
959-
<div class="subvalue"><a href="/cgi-bin/fulltext-upload.cgi" style="color: #2196F3;">Upload full paper for AI analysis</a> · <a href="/cgi-bin/fulltext-status.cgi" style="color: #2196F3;">Open public processing status</a></div>
959+
<div class="subvalue"><a href="/cgi-bin/fulltext-upload.cgi" style="color: #2196F3;">Upload full paper for AI analysis</a> · <a href="/cgi-bin/fulltext-status.cgi" style="color: #2196F3;">Open public processing status</a> · <a href="/fulltext.html" style="color: #2196F3;">Open full-text charts</a></div>
960960
</div>
961961
<div class="card">
962962
<h3>AI Processed</h3>

0 commit comments

Comments
 (0)