rayl-aoit's picture
Create app.py
4389dd9 verified
raw
history blame
1.15 kB
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"):
radio, test_pipeline_button = create_tabs_header()
gr.Markdown("""
> Image Captioning
""")
with gr.TabItem("Name Entity"):
radio, test_pipeline_button = create_tabs_header()
gr.Markdown("""
> Name Entity Recognition
""")
create_playground_footer()
playground.launch(share=True)