prithivMLmods commited on
Commit
10a1822
·
verified ·
1 Parent(s): 5527e7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -22,6 +22,22 @@ from transformers import (
22
  )
23
  from transformers.image_utils import load_image
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  # Constants for text generation
26
  MAX_MAX_NEW_TOKENS = 2048
27
  DEFAULT_MAX_NEW_TOKENS = 1024
@@ -241,7 +257,8 @@ css = """
241
  """
242
 
243
  # Create the Gradio Interface
244
- with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
 
245
  gr.Markdown("# **[Multimodal OCR](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**")
246
  with gr.Row():
247
  with gr.Column():
 
22
  )
23
  from transformers.image_utils import load_image
24
 
25
+ #theme:custom
26
+ custom_theme = gr.themes.Base(
27
+ primary_hue="indigo",
28
+ secondary_hue="violet",
29
+ neutral_hue="gray"
30
+ ).set(
31
+ body_background_fill="#f7f5fa",
32
+ body_text_color="#1f1f1f",
33
+ input_background_fill="#ffffff",
34
+ button_primary_background_fill="#8b5cf6",
35
+ button_primary_text_color="#ffffff",
36
+ button_secondary_background_fill="#e0d7f5",
37
+ button_secondary_text_color="#1f1f1f",
38
+ shadow_spread="sm"
39
+ )
40
+
41
  # Constants for text generation
42
  MAX_MAX_NEW_TOKENS = 2048
43
  DEFAULT_MAX_NEW_TOKENS = 1024
 
257
  """
258
 
259
  # Create the Gradio Interface
260
+ #with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
261
+ with gr.Blocks(css=css, theme=custom_theme) as demo:
262
  gr.Markdown("# **[Multimodal OCR](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**")
263
  with gr.Row():
264
  with gr.Column():