Upload hfsearch.py
Browse files- hfsearch.py +3 -1
hfsearch.py
CHANGED
@@ -15,8 +15,10 @@ def dummy_gpu():
|
|
15 |
pass
|
16 |
|
17 |
TYPES_SHORT = {"model": "M", "dataset": "D", "space": "S", "paper": "P", "collection": "C"}
|
|
|
|
|
18 |
|
19 |
-
TYPES_DESC = " / ".join([f"{v}={k}" for k, v in zip(list(TYPES_SHORT.keys()), list(TYPES_SHORT.values()))])
|
20 |
|
21 |
RESULT_ITEMS = {
|
22 |
"Type": [1, "str", True],
|
|
|
15 |
pass
|
16 |
|
17 |
TYPES_SHORT = {"model": "M", "dataset": "D", "space": "S", "paper": "P", "collection": "C"}
|
18 |
+
TYPES_URL = {"model": "https://huggingface.co/models", "dataset": "https://huggingface.co/datasets", "space": "https://huggingface.co/spaces",
|
19 |
+
"paper": "https://huggingface.co/papers", "collection": "https://huggingface.co/collections"}
|
20 |
|
21 |
+
TYPES_DESC = " / ".join([f"[{v}={k}]({TYPES_URL.get(k, 'https://hf.co')})" for k, v in zip(list(TYPES_SHORT.keys()), list(TYPES_SHORT.values()))])
|
22 |
|
23 |
RESULT_ITEMS = {
|
24 |
"Type": [1, "str", True],
|