Spaces:
Sleeping
Sleeping
Create searchmodel.py
Browse files- searchmodel.py +5 -0
searchmodel.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import InferenceClient
|
| 2 |
+
|
| 3 |
+
client = InferenceClient(token=os.environ["HF_TOKEN"])
|
| 4 |
+
deployed = client.list_deployed_models("text-generation-inference")
|
| 5 |
+
print(deployed.get("text-generation", []))
|