mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-13 05:08:01 -05:00
test library path
This commit is contained in:
parent
746a538074
commit
de8dd90cbb
3 changed files with 5 additions and 8 deletions
5
.github/workflows/docker-build-and-push.yml
vendored
5
.github/workflows/docker-build-and-push.yml
vendored
|
@ -9,8 +9,6 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
env:
|
|
||||||
CGO_ENABLED: 0
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
@ -27,6 +25,9 @@ jobs:
|
||||||
- name: Install mupdf
|
- name: Install mupdf
|
||||||
run: sudo apt-get install -y mupdf
|
run: sudo apt-get install -y mupdf
|
||||||
|
|
||||||
|
- name: Set library path
|
||||||
|
run: echo "/usr/lib" | sudo tee -a /etc/ld.so.conf.d/mupdf.conf && sudo ldconfig
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: go mod download
|
run: go mod download
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ const ExperimentalOCR: React.FC = () => {
|
||||||
const [ocrResult, setOcrResult] = useState('');
|
const [ocrResult, setOcrResult] = useState('');
|
||||||
const [status, setStatus] = useState('');
|
const [status, setStatus] = useState('');
|
||||||
const [error, setError] = useState('');
|
const [error, setError] = useState('');
|
||||||
const [isCheckingStatus, setIsCheckingStatus] = useState(false);
|
|
||||||
|
|
||||||
const submitOCRJob = async () => {
|
const submitOCRJob = async () => {
|
||||||
setStatus('');
|
setStatus('');
|
||||||
|
@ -31,7 +30,6 @@ const ExperimentalOCR: React.FC = () => {
|
||||||
|
|
||||||
const checkJobStatus = async () => {
|
const checkJobStatus = async () => {
|
||||||
if (!jobId) return;
|
if (!jobId) return;
|
||||||
setIsCheckingStatus(true);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(`/api/jobs/ocr/${jobId}`);
|
const response = await axios.get(`/api/jobs/ocr/${jobId}`);
|
||||||
|
@ -50,8 +48,6 @@ const ExperimentalOCR: React.FC = () => {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
setError('Failed to check job status.');
|
setError('Failed to check job status.');
|
||||||
} finally {
|
|
||||||
setIsCheckingStatus(false);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"root":["./src/app.tsx","./src/documentprocessor.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/documentcard.tsx","./src/components/documentstoprocess.tsx","./src/components/nodocuments.tsx","./src/components/successmodal.tsx","./src/components/suggestioncard.tsx","./src/components/suggestionsreview.tsx"],"version":"5.6.2"}
|
{"root":["./src/app.tsx","./src/documentprocessor.tsx","./src/experimentalocr.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/documentcard.tsx","./src/components/documentstoprocess.tsx","./src/components/nodocuments.tsx","./src/components/successmodal.tsx","./src/components/suggestioncard.tsx","./src/components/suggestionsreview.tsx"],"version":"5.6.2"}
|
Loading…
Reference in a new issue