File size: 2,259 Bytes
b76cf08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import gradio as gr

from helper.text.text_about import TextAbout
from helper.text.text_roadmap import TextRoadmap

with gr.Blocks() as about_tab:
    with gr.Tabs():
        with gr.Tab("HTRFLOW"):
            gr.Markdown(
                "update... todo.. here we should talk about the pipline and the app as seperate things... pipline overview perhaps be moved?"
            )
            with gr.Row():
                with gr.Column():
                    gr.Markdown(TextAbout.intro_text)
                with gr.Column():
                    gr.Markdown(TextAbout.text_src_code_data_models)
            with gr.Row():
                gr.Markdown(TextAbout.pipeline_overview_text)
            with gr.Row():
                with gr.Tabs():
                    with gr.Tab("1. Binarization"):
                        gr.Markdown(TextAbout.binarization)
                    with gr.Tab("2. Region Segmentation"):
                        gr.Markdown(TextAbout.text_region_segment)
                    with gr.Tab("3. Line Segmentation"):
                        gr.Markdown(TextAbout.text_line_segmentation)
                    with gr.Tab("4. Transcriber"):
                        gr.Markdown(TextAbout.text_htr)

        with gr.Tab("Contributions"):
            with gr.Row():
                gr.Markdown(TextRoadmap.text_contribution)

        # with gr.Tab("API & Duplicate for own use"):
        #     with gr.Row():
        #         with gr.Column():
        #             gr.Markdown(TextHowTo.htr_tool_api_text)
        #             gr.Code(
        #                 value=TextHowTo.code_for_api,
        #                 language="python",
        #                 interactive=False,
        #                 show_label=False,
        #             )
        #         with gr.Column():
        #             gr.Markdown(TextHowTo.duplicatin_space_htr_text)
        #             gr.Markdown(TextHowTo.figure_htr_hardware)
        #             gr.Markdown(TextHowTo.duplicatin_for_privat)

        with gr.Tab("Changelog & Roadmap"):
            with gr.Row():
                with gr.Column():
                    gr.Markdown(TextRoadmap.roadmap)
                with gr.Column():
                    gr.Markdown(TextRoadmap.discussion)