Spaces:
Running
Running
Update app.py
Browse filesadded mistral-wise font and background color
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 |
-
|
|
|
|
|
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 |
|