merterbak commited on
Commit
ad7af21
·
verified ·
1 Parent(s): 8ee00e1

remove custom button color

Browse files
Files changed (1) hide show
  1. app.py +18 -7
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 {background-color: #4CAF50; color: white; border: none; padding: 10px 15px; border-radius: 5px;}
102
- .gr-button:hover {background-color: #45a049;}
 
 
 
 
 
 
 
 
103
  .gr-textbox {margin-bottom: 15px;}
104
- .example-button {background-color: #1E90FF; color: white; border: none; padding: 8px 15px; border-radius: 5px; margin: 5px;}
105
- .example-button:hover {background-color: #FF4500;}
106
- .tall-radio .gr-radio-item {padding: 15px 0; min-height: 50px; display: flex; align-items: center;}
 
 
 
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", elem_classes="example-button")
148
- img_example = gr.Button("Image", elem_classes="example-button")
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")