Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
playground = gr.Blocks()
|
4 |
+
|
5 |
+
def create_playground_header():
|
6 |
+
gr.Markdown("""
|
7 |
+
🤗 Hugging Face Labs
|
8 |
+
** Explore different LLM on Hugging Face platform. Just play and enjoy **
|
9 |
+
""")
|
10 |
+
|
11 |
+
def create_playground_footer():
|
12 |
+
gr.Markdown("""
|
13 |
+
### To Learn More about 🤗 Hugging Face,[Click Here](https://huggingface.co/docs)
|
14 |
+
""")
|
15 |
+
|
16 |
+
with playground:
|
17 |
+
create_playground_header()
|
18 |
+
with gr.Tabs():
|
19 |
+
with gr.TabItem("Text"):
|
20 |
+
gr.Markdown("""
|
21 |
+
> Text Summarization and Translation
|
22 |
+
""")
|
23 |
+
|
24 |
+
with gr.TabItem("Image"):
|
25 |
+
radio, test_pipeline_button = create_tabs_header()
|
26 |
+
gr.Markdown("""
|
27 |
+
> Image Captioning
|
28 |
+
""")
|
29 |
+
|
30 |
+
with gr.TabItem("Name Entity"):
|
31 |
+
radio, test_pipeline_button = create_tabs_header()
|
32 |
+
gr.Markdown("""
|
33 |
+
> Name Entity Recognition
|
34 |
+
""")
|
35 |
+
|
36 |
+
create_playground_footer()
|
37 |
+
|
38 |
+
playground.launch(share=True)
|