Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated references to examples
  • Loading branch information
Balearica committed Jan 19, 2024
1 parent bc42745 commit 00d1739
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
@@ -1,7 +1,7 @@
image:
file: .gitpod.Dockerfile
tasks:
- command: gp await-port 3000 && sleep 3 && gp preview $(gp url 3000)/examples/browser/demo.html
- command: gp await-port 3000 && sleep 3 && gp preview $(gp url 3000)/examples/browser/basic-efficient.html
- init: npm install
command: npm start
ports:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -152,14 +152,14 @@ npm install
npm start
```

The development server will be available at http://localhost:3000/examples/browser/demo.html in your favorite browser.
The development server will be available at http://localhost:3000/examples/browser/basic-efficient.html in your favorite browser.
It will automatically rebuild `tesseract.min.js` and `worker.min.js` when you change files in the **src** folder.

### Online Setup with a single Click

You can use Gitpod(A free online VS Code like IDE) for contributing. With a single click it will launch a ready to code workspace with the build & start scripts already in process and within a few seconds it will spin up the dev server so that you can start contributing straight away without wasting any time.

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/naptha/tesseract.js/blob/master/examples/browser/demo.html)
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/naptha/tesseract.js/blob/master/examples/browser/basic-efficient.html)

### Building Static Files
To build the compiled static files just execute the following:
Expand Down
4 changes: 1 addition & 3 deletions examples/browser/basic-efficient.html
Expand Up @@ -7,9 +7,7 @@
<input type="file" id="uploader" multiple>
<script type="module">

// This is a basic example more efficient than "basic.html".
// In this example we create a worker once, and this worker is re-used
// every time the user uploads a new file.
// A worker is created once and used every time a user uploads a new file.
const worker = await Tesseract.createWorker("eng", 1, {
corePath: '../../node_modules/tesseract.js-core',
workerPath: "/dist/worker.min.js",
Expand Down

0 comments on commit 00d1739

Please sign in to comment.