File size: 1,367 Bytes
1f01f64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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



def get() :
    with gr.Column() as result:
        gr.HTML("<br/><br/><br/><br/>")
        gr.Markdown("# Welcome to Khaled Space! πŸ‘‹",height=100)
 
        gr.Markdown(    """
                    


    Welcome to **Khaled's AI Learning Hub**! πŸš€

    This platform is dedicated to showcasing AI development projects, all designed to help you explore and understand the power of artificial intelligence. πŸ€–πŸ’‘

    **πŸ‘ˆ Select a project from the sidebar** to see hands-on examples ranging from data processing to model deployment. Each project page will guide you through different aspects of AI development, helping you gain practical insights.

 
                    


    """)
        gr.HTML("<br/><br/><br/><br/>")

    
    return result


#
# PAGES can be in external files
#
def get_not_found_page(local_state):
    with gr.Column() as result:
        gr.Markdown("## 404 - PAGE NOT FOUND")

        gr.Label(f"404 Page {type(local_state)}: {local_state }")
    return result


def get_landing_page(local_state):
    with gr.Column() as result:
        gr.Markdown("## LANDING PAGE")

        if local_state:
            gr.Label(f"Landing Page {type(local_state)}")
            gr.Label(f"Page: {local_state }")
    return result


# with gr.Blocks() as demo:
#        get()
# if __name__ == "__main__":
#     demo.launch()