AldoOrtega commited on
Commit
11b1afd
1 Parent(s): 3a6f8eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -1
app.py CHANGED
@@ -42,6 +42,21 @@ def process_document(image):
42
  #description = "Clip AI: Check Understanding"
43
  #article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2111.15664' target='_blank'>Donut: OCR-free Document Understanding Transformer</a> | <a href='https://github.com/clovaai/donut' target='_blank'>Github Repo</a></p>"
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  demo = gr.Interface(
46
  fn=process_document,
47
  inputs="image",
@@ -51,6 +66,10 @@ demo = gr.Interface(
51
  #article=article,
52
  enable_queue=True,
53
  #examples=[["example.png"], ["example_2.png"], ["example_3.png"]],
54
- cache_examples=False)
 
 
 
 
55
 
56
  demo.launch()
 
42
  #description = "Clip AI: Check Understanding"
43
  #article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2111.15664' target='_blank'>Donut: OCR-free Document Understanding Transformer</a> | <a href='https://github.com/clovaai/donut' target='_blank'>Github Repo</a></p>"
44
 
45
+ # Style
46
+ primary_palette = gr.themes.Color(
47
+ c50="#282253",
48
+ c100="#282253",
49
+ c200="#282253",
50
+ c300="#282253",
51
+ c400="#282253",
52
+ c500="#282253",
53
+ c600="white",
54
+ c700="#EC5F9C",
55
+ c800="#EC4D92",
56
+ c900="#EB3A86",
57
+ c950='#E9277A',
58
+ )
59
+
60
  demo = gr.Interface(
61
  fn=process_document,
62
  inputs="image",
 
66
  #article=article,
67
  enable_queue=True,
68
  #examples=[["example.png"], ["example_2.png"], ["example_3.png"]],
69
+ cache_examples=False
70
+ theme=gr.themes.Default(
71
+ primary_hue=primary_palette
72
+ )
73
+ )
74
 
75
  demo.launch()