juhoinkinen commited on
Commit
2b305b0
·
unverified ·
1 Parent(s): 45ed86a

Turn blurb to heading 1

Browse files
Files changed (1) hide show
  1. app.py +8 -17
app.py CHANGED
@@ -93,22 +93,16 @@ body, .mygrclass {
93
  margin: 0 auto;
94
  padding: 0 15px;
95
  }
96
- header {
97
- background: linear-gradient(to bottom, #ffffff 92%, #d9dfe3 92%, #ffffff 100%);
98
- padding-bottom: 5px;
 
99
  }
100
  h2 {
101
  font-weight: 500;
102
  font-size: 1.5rem;
103
  padding: 0.5rem 0;
104
  }
105
- #blurb {
106
- font-size: 2.0rem;
107
- font-weight: 500;
108
- line-height: 1;
109
- text-align: center;
110
- margin: 2rem 0;
111
- }
112
  #form {
113
  background: linear-gradient(to bottom, #ffffff 0%, #d9dfe3 1%, #f3f3f6 1%, #f3f3f6 99%, #d9dfe3 99%, #ffffff 100%);
114
  padding: 2rem 0;
@@ -155,13 +149,10 @@ meter::-webkit-meter-optimum-value {
155
  }
156
  """
157
 
158
- with gr.Blocks(theme=gr.themes.Default(radius_size="none"), css=css) as interface:
 
159
  gr.HTML("""
160
- <div class="container">
161
- <p id="blurb">
162
- Annif demo with image/camera input and OCR
163
- </p>
164
- </div>
165
  """)
166
 
167
  with gr.Row():
@@ -180,4 +171,4 @@ with gr.Blocks(theme=gr.themes.Default(radius_size="none"), css=css) as interfac
180
 
181
  submit_btn.click(process, inputs=[image_input, project, lang], outputs=[text_output, html_output])
182
 
183
- interface.launch()
 
93
  margin: 0 auto;
94
  padding: 0 15px;
95
  }
96
+ h1, h1 a {
97
+ font-weight: 500;
98
+ font-size: 2rem;
99
+ text-align: center;
100
  }
101
  h2 {
102
  font-weight: 500;
103
  font-size: 1.5rem;
104
  padding: 0.5rem 0;
105
  }
 
 
 
 
 
 
 
106
  #form {
107
  background: linear-gradient(to bottom, #ffffff 0%, #d9dfe3 1%, #f3f3f6 1%, #f3f3f6 99%, #d9dfe3 99%, #ffffff 100%);
108
  padding: 2rem 0;
 
149
  }
150
  """
151
 
152
+ with gr.Blocks(theme=gr.themes.Default(radius_size="none"), css=css) as demo:
153
+
154
  gr.HTML("""
155
+ <h1><a href="https://annif.org">Annif</a> demo with image/camera input and OCR</h1>
 
 
 
 
156
  """)
157
 
158
  with gr.Row():
 
171
 
172
  submit_btn.click(process, inputs=[image_input, project, lang], outputs=[text_output, html_output])
173
 
174
+ demo.launch()