jaccolor commited on
Commit
c8037df
·
verified ·
1 Parent(s): a596da4

Update app.py

Browse files

added mistral-wise font and background color

Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -112,8 +112,15 @@ def perform_ocr_url(url, ocr_method="Mistral OCR"):
112
  return combined_markdown, raw_markdown
113
 
114
  return "## Method not supported.", ""
 
 
 
 
 
115
 
116
- with gr.Blocks() as demo:
 
 
117
  gr.Markdown("# Mistral OCR")
118
  gr.Markdown("Upload a PDF or an image, or provide a URL to extract text and images using Mistral OCR capabilities.\n\nLearn more in the blog post [here](https://mistral.ai/news/mistral-ocr).")
119
 
 
112
  return combined_markdown, raw_markdown
113
 
114
  return "## Method not supported.", ""
115
+
116
+ theme = gr.themes.Base(
117
+ primary_hue="orange",
118
+ font=[gr.themes.GoogleFont('Arial'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
119
+ )
120
 
121
+ css=".gradio-container {background-color: #FFFAEB;}"
122
+
123
+ with gr.Blocks(theme=theme, css=css) as demo:
124
  gr.Markdown("# Mistral OCR")
125
  gr.Markdown("Upload a PDF or an image, or provide a URL to extract text and images using Mistral OCR capabilities.\n\nLearn more in the blog post [here](https://mistral.ai/news/mistral-ocr).")
126