Tonic commited on
Commit
58f99ee
1 Parent(s): 434f8a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from difflib import Differ
7
  from concurrent.futures import ThreadPoolExecutor
8
  import os
9
 
10
- description = """# 👋🏻Welcome to Tonic's On-Device📲⌚🎅🏻OCR Corrector (CPU)
11
  📲⌚🎅🏻OCRonos-Vintage is a small specialized model for OCR correction of cultural heritage archives pre-trained with llm.c. OCRonos-Vintage is only 124 million parameters. It can run easily on CPU or provide correction at scale on GPUs (>10k tokens/seconds) while providing a quality of correction comparable to GPT-4 or the llama version of OCRonos for English-speaking cultural archives.
12
 
13
  ### Join us :
@@ -16,7 +16,6 @@ description = """# 👋🏻Welcome to Tonic's On-Device📲⌚🎅🏻OCR Correc
16
 
17
  model_name = "PleIAs/OCRonos-Vintage"
18
  device = "cuda" if torch.cuda.is_available() else "cpu"
19
- 🙋🏻‍♂️Welcome to Tonic's ⌚🎅🏻Vintage OCRonos Corrector (CPU)
20
  model = GPT2LMHeadModel.from_pretrained(model_name).to(device)
21
  tokenizer = GPT2Tokenizer.from_pretrained(model_name)
22
 
 
7
  from concurrent.futures import ThreadPoolExecutor
8
  import os
9
 
10
+ description = """# 🙋🏻‍♂️Welcome to Tonic's On-Device📲⌚🎅🏻OCR Corrector (CPU)
11
  📲⌚🎅🏻OCRonos-Vintage is a small specialized model for OCR correction of cultural heritage archives pre-trained with llm.c. OCRonos-Vintage is only 124 million parameters. It can run easily on CPU or provide correction at scale on GPUs (>10k tokens/seconds) while providing a quality of correction comparable to GPT-4 or the llama version of OCRonos for English-speaking cultural archives.
12
 
13
  ### Join us :
 
16
 
17
  model_name = "PleIAs/OCRonos-Vintage"
18
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
19
  model = GPT2LMHeadModel.from_pretrained(model_name).to(device)
20
  tokenizer = GPT2Tokenizer.from_pretrained(model_name)
21