Spaces:
Sleeping
Sleeping
Commit
·
1628cf8
1
Parent(s):
5f644bb
add test
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
from huggingface_hub import HfApi, ModelFilter
|
| 2 |
from collections import defaultdict
|
| 3 |
import pandas as pd
|
|
|
|
| 4 |
|
| 5 |
api = HfApi()
|
| 6 |
|
|
@@ -25,3 +26,8 @@ sorted_dict = dict(sorted(downloads.items(), key=lambda item: item[1], reverse=T
|
|
| 25 |
|
| 26 |
# Convert the sorted dictionary to a DataFrame
|
| 27 |
df = pd.DataFrame(list(sorted_dict.items()), columns=['Pipeline class', 'Downloads'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from huggingface_hub import HfApi, ModelFilter
|
| 2 |
from collections import defaultdict
|
| 3 |
import pandas as pd
|
| 4 |
+
import gradio as gr
|
| 5 |
|
| 6 |
api = HfApi()
|
| 7 |
|
|
|
|
| 26 |
|
| 27 |
# Convert the sorted dictionary to a DataFrame
|
| 28 |
df = pd.DataFrame(list(sorted_dict.items()), columns=['Pipeline class', 'Downloads'])
|
| 29 |
+
|
| 30 |
+
with gr.Blocks() as demo:
|
| 31 |
+
gr.DataFrame(df)
|
| 32 |
+
|
| 33 |
+
demo.launch()
|