Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import list_models, list_datasets, list_spaces
|
| 3 |
import pandas as pd
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def get_user_stats():
|
| 6 |
users = {}
|
|
@@ -63,10 +65,10 @@ def get_user_stats_df(limit=1000):
|
|
| 63 |
return df
|
| 64 |
|
| 65 |
df = get_user_stats_df()
|
| 66 |
-
desc = """
|
| 67 |
# π€ Hugging Face User Stats
|
| 68 |
|
| 69 |
-
Here are some stats on the top 1000 users/organizations on the Hugging Face Hub.
|
| 70 |
"""
|
| 71 |
with gr.Blocks() as demo:
|
| 72 |
gr.Markdown(desc)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import list_models, list_datasets, list_spaces
|
| 3 |
import pandas as pd
|
| 4 |
+
from datetime import datetime
|
| 5 |
+
|
| 6 |
|
| 7 |
def get_user_stats():
|
| 8 |
users = {}
|
|
|
|
| 65 |
return df
|
| 66 |
|
| 67 |
df = get_user_stats_df()
|
| 68 |
+
desc = f"""
|
| 69 |
# π€ Hugging Face User Stats
|
| 70 |
|
| 71 |
+
Here are some stats on the top 1000 users/organizations on the Hugging Face Hub. **Updated {datetime.now().strftime("%d/%m/%y")}**
|
| 72 |
"""
|
| 73 |
with gr.Blocks() as demo:
|
| 74 |
gr.Markdown(desc)
|