Update tools.py
Browse files
tools.py
CHANGED
|
@@ -4,6 +4,9 @@ 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."""
|
|
|
|
| 4 |
import pandas as pd
|
| 5 |
import numpy as np
|
| 6 |
from typing import TypedDict, Annotated, Union, Dict, Any
|
| 7 |
+
import base64
|
| 8 |
+
from langchain_core.messages import HumanMessage
|
| 9 |
+
from langchain_openai import ChatOpenAI
|
| 10 |
|
| 11 |
def get_hub_stats(author: str) -> str:
|
| 12 |
"""Fetches the most downloaded model from a specific author on the Hugging Face Hub."""
|