wjbmattingly commited on
Commit
c963155
1 Parent(s): 6e1b306

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -20,7 +20,7 @@ MODEL_OPTIONS = {
20
 
21
  # Load image examples
22
  urls = [
23
- 'https://huggingface.co/medieval-data/trocr-medieval-base/blob/main/images/caroline-1.png'
24
  ]
25
 
26
  for idx, url in enumerate(urls):
@@ -47,11 +47,10 @@ def process_image(image, model_name):
47
  return generated_text
48
 
49
  title = "Interactive demo: TrOCR Model Switcher"
50
- description = "Demo for various TrOCR models, including Microsoft's handwritten model and several medieval models. To use it, simply upload a (single-text line) image or use one of the example images below, select a model, and click 'submit'. Results will show up in a few seconds."
51
- article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2109.10282'>TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models</a> | <a href='https://github.com/microsoft/unilm/tree/master/trocr'>Github Repo</a></p>"
52
 
53
  examples = [
54
- ["https://huggingface.co/medieval-data/trocr-medieval-base/blob/main/images/caroline-1.png", "Caroline"]
55
  ]
56
 
57
  iface = gr.Interface(
 
20
 
21
  # Load image examples
22
  urls = [
23
+ 'https://huggingface.co/medieval-data/trocr-medieval-base/resolve/main/images/caroline-1.png'
24
  ]
25
 
26
  for idx, url in enumerate(urls):
 
47
  return generated_text
48
 
49
  title = "Interactive demo: TrOCR Model Switcher"
50
+ description = "Demo for the Medieval TrOCR HTR Models."
 
51
 
52
  examples = [
53
+ ["https://huggingface.co/medieval-data/trocr-medieval-base/resolve/main/images/caroline-1.png", "Caroline"]
54
  ]
55
 
56
  iface = gr.Interface(