Spaces:
Sleeping
Sleeping
Commit ·
e60cc65
1
Parent(s): d075bff
Added labels, changes the format of the entities
Browse files25 unmodified lines26272829303133 unmodified lines65666768697071727325 unmodified linesentities.append(entity)print("ENTITIES ", entities)return entities33 unmodified lineslang = gr.Dropdown(choices, value="eng")btn = gr.Button("Run")with gr.Column():text_out = gr.TextArea()with gr.Column():ner = gr.TextArea()btn.click(fn=run, inputs=[image_in, lang], outputs=[text_out, ner])25 unmodified lines2627282930313233 unmodified lines66676869707172737425 unmodified linesentities.append(entity)print("ENTITIES ", entities)entities = "/n".join(entities)return entities33 unmodified lineslang = gr.Dropdown(choices, value="eng")btn = gr.Button("Run")with gr.Column():text_out = gr.TextArea(label="OCR output")with gr.Column():ner = gr.TextArea(label="Named entities")btn.click(fn=run, inputs=[image_in, lang], outputs=[text_out, ner])
app.py+3-2