Spaces:
Sleeping
Sleeping
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() |