test library path

This commit is contained in:
Dominik Schröter 2024-10-28 10:45:03 +01:00
parent 746a538074
commit de8dd90cbb
3 changed files with 5 additions and 8 deletions

View file

@ -9,8 +9,6 @@ on:
pull_request:
branches:
- main
env:
CGO_ENABLED: 0
jobs:
test:
@ -27,6 +25,9 @@ jobs:
- name: Install 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
run: go mod download

View file

@ -10,7 +10,6 @@ const ExperimentalOCR: React.FC = () => {
const [ocrResult, setOcrResult] = useState('');
const [status, setStatus] = useState('');
const [error, setError] = useState('');
const [isCheckingStatus, setIsCheckingStatus] = useState(false);
const submitOCRJob = async () => {
setStatus('');
@ -31,7 +30,6 @@ const ExperimentalOCR: React.FC = () => {
const checkJobStatus = async () => {
if (!jobId) return;
setIsCheckingStatus(true);
try {
const response = await axios.get(`/api/jobs/ocr/${jobId}`);
@ -50,9 +48,7 @@ const ExperimentalOCR: React.FC = () => {
} catch (err) {
console.error(err);
setError('Failed to check job status.');
} finally {
setIsCheckingStatus(false);
}
}
};
// Start checking job status when jobId is set

View file

@ -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"}