Spaces:
Running
Running
remove custom button color
Browse files
app.py
CHANGED
@@ -98,12 +98,23 @@ def do_ocr(input_type, url, file, api_key):
|
|
98 |
|
99 |
custom_css = """
|
100 |
body {font-family: 'Helvetica Neue', Helvetica;}
|
101 |
-
.gr-button {
|
102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
.gr-textbox {margin-bottom: 15px;}
|
104 |
-
.
|
105 |
-
|
106 |
-
|
|
|
|
|
|
|
107 |
.tall-radio label {font-size: 16px;}
|
108 |
"""
|
109 |
|
@@ -144,8 +155,8 @@ with gr.Blocks(
|
|
144 |
)
|
145 |
submit_btn = gr.Button("Extract Text and Images")
|
146 |
gr.Markdown("### Try These Examples")
|
147 |
-
pdf_example = gr.Button("PDF"
|
148 |
-
img_example = gr.Button("Image"
|
149 |
with gr.Column(scale=2):
|
150 |
cleaned_output = gr.Textbox(label="Extracted Plain Text", lines=10, show_copy_button=True)
|
151 |
markdown_output = gr.Markdown(label="Rendered Markdown Text")
|
|
|
98 |
|
99 |
custom_css = """
|
100 |
body {font-family: 'Helvetica Neue', Helvetica;}
|
101 |
+
.gr-button {
|
102 |
+
background-color: #4CAF50;
|
103 |
+
color: white;
|
104 |
+
border: none;
|
105 |
+
padding: 10px 15px;
|
106 |
+
border-radius: 5px;
|
107 |
+
}
|
108 |
+
.gr-button:hover {
|
109 |
+
background-color: #45a049;
|
110 |
+
}
|
111 |
.gr-textbox {margin-bottom: 15px;}
|
112 |
+
.tall-radio .gr-radio-item {
|
113 |
+
padding: 15px 0;
|
114 |
+
min-height: 50px;
|
115 |
+
display: flex;
|
116 |
+
align-items: center;
|
117 |
+
}
|
118 |
.tall-radio label {font-size: 16px;}
|
119 |
"""
|
120 |
|
|
|
155 |
)
|
156 |
submit_btn = gr.Button("Extract Text and Images")
|
157 |
gr.Markdown("### Try These Examples")
|
158 |
+
pdf_example = gr.Button("PDF")
|
159 |
+
img_example = gr.Button("Image")
|
160 |
with gr.Column(scale=2):
|
161 |
cleaned_output = gr.Textbox(label="Extracted Plain Text", lines=10, show_copy_button=True)
|
162 |
markdown_output = gr.Markdown(label="Rendered Markdown Text")
|