Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import numpy as np
|
| 3 |
+
import pandas as pd
|
| 4 |
+
|
| 5 |
+
pd.options.plotting.backend = "plotly"
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
with gr.Blocks() as demo:
|
| 11 |
+
gr.Markdown("# 🤗 Diffusion Cluster Explorer")
|
| 12 |
+
gr.Markdown(_ABSTRACT)
|
| 13 |
+
with gr.Tab("Exploring all professions together"):
|
| 14 |
+
gr.Markdown(
|
| 15 |
+
"TODO"
|
| 16 |
+
)
|
| 17 |
+
with gr.Row():
|
| 18 |
+
|
| 19 |
+
with gr.Row():
|
| 20 |
+
|
| 21 |
+
with gr.Accordion("Tag Frequencies", open=False):
|
| 22 |
+
|
| 23 |
+
with gr.Tab("Tab 2"):
|
| 24 |
+
gr.Markdown("TODO"
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
demo.launch()
|
| 30 |
+
|