Update tools.py
Browse files
tools.py
CHANGED
|
@@ -3,6 +3,7 @@ import random
|
|
| 3 |
from huggingface_hub import list_models
|
| 4 |
import pandas as pd
|
| 5 |
import numpy as np
|
|
|
|
| 6 |
|
| 7 |
def get_hub_stats(author: str) -> str:
|
| 8 |
"""Fetches the most downloaded model from a specific author on the Hugging Face Hub."""
|
|
|
|
| 3 |
from huggingface_hub import list_models
|
| 4 |
import pandas as pd
|
| 5 |
import numpy as np
|
| 6 |
+
from typing import TypedDict, Annotated, Union, Dict, Any
|
| 7 |
|
| 8 |
def get_hub_stats(author: str) -> str:
|
| 9 |
"""Fetches the most downloaded model from a specific author on the Hugging Face Hub."""
|