Spaces:
Sleeping
Sleeping
juhoinkinen
commited on
Better texts
Browse files
app.py
CHANGED
@@ -97,12 +97,6 @@ header {
|
|
97 |
background: linear-gradient(to bottom, #ffffff 92%, #d9dfe3 92%, #ffffff 100%);
|
98 |
padding-bottom: 5px;
|
99 |
}
|
100 |
-
h1 {
|
101 |
-
font-weight: 500;
|
102 |
-
font-size: 2rem;
|
103 |
-
padding: 0;
|
104 |
-
margin: 0;
|
105 |
-
}
|
106 |
h2 {
|
107 |
font-weight: 500;
|
108 |
font-size: 1.5rem;
|
@@ -165,17 +159,17 @@ with gr.Blocks(theme=gr.themes.Default(radius_size="none"), css=css) as interfac
|
|
165 |
gr.HTML("""
|
166 |
<div class="container">
|
167 |
<p id="blurb">
|
168 |
-
Annif demo with camera input and OCR
|
169 |
</p>
|
170 |
</div>
|
171 |
""")
|
172 |
|
173 |
with gr.Row():
|
174 |
with gr.Column(scale=3):
|
175 |
-
image_input = gr.Image(type="numpy", label="
|
176 |
with gr.Column(scale=1):
|
177 |
project = gr.Dropdown(choices=proj_names, label="Project (vocabulary and language)", type="index", elem_classes="mygrclass")
|
178 |
-
lang = gr.Dropdown(choices=langs, label="Select Language", type="value", value="eng", elem_classes="mygrclass")
|
179 |
submit_btn = gr.Button("Get suggestions", elem_id="get-suggestions", elem_classes="mygrclass")
|
180 |
|
181 |
with gr.Row():
|
|
|
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;
|
|
|
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():
|
168 |
with gr.Column(scale=3):
|
169 |
+
image_input = gr.Image(type="numpy", label="Input Image", elem_classes="mygrclass")
|
170 |
with gr.Column(scale=1):
|
171 |
project = gr.Dropdown(choices=proj_names, label="Project (vocabulary and language)", type="index", elem_classes="mygrclass")
|
172 |
+
lang = gr.Dropdown(choices=langs, label="Select Language for OCR", type="value", value="eng", elem_classes="mygrclass")
|
173 |
submit_btn = gr.Button("Get suggestions", elem_id="get-suggestions", elem_classes="mygrclass")
|
174 |
|
175 |
with gr.Row():
|