Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -23,20 +23,20 @@ from transformers import (
|
|
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
|
@@ -257,8 +257,7 @@ css = """
|
|
257 |
"""
|
258 |
|
259 |
# Create the Gradio Interface
|
260 |
-
|
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():
|
|
|
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
|
|
|
257 |
"""
|
258 |
|
259 |
# Create the Gradio Interface
|
260 |
+
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
|
261 |
gr.Markdown("# **[Multimodal OCR](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**")
|
262 |
with gr.Row():
|
263 |
with gr.Column():
|