File size: 1,020 Bytes
4389dd9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import gradio as gr

playground = gr.Blocks()

def create_playground_header():
    gr.Markdown("""
                🤗 Hugging Face Labs
                ** Explore different LLM on Hugging Face platform. Just play and enjoy **
                """)

def create_playground_footer():
    gr.Markdown("""
                ### To Learn More about 🤗 Hugging Face,[Click Here](https://huggingface.co/docs)
                """)

with playground:
    create_playground_header()
    with gr.Tabs():
        with gr.TabItem("Text"):
            gr.Markdown("""
                        > Text Summarization and Translation
                        """)
        
        with gr.TabItem("Image"):
            gr.Markdown("""
                        > Image Captioning
                        """)
            
        with gr.TabItem("Name Entity"):
            gr.Markdown("""
                        > Name Entity Recognition
                        """)
            
    create_playground_footer()

playground.launch(share=True)