Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,7 @@ def get_available_free():
|
|
42 |
def update_data():
|
43 |
data = get_available_free()
|
44 |
df = pd.DataFrame(data)
|
|
|
45 |
return df
|
46 |
|
47 |
def display_table(search_query=""):
|
@@ -94,7 +95,7 @@ This is a space that retrieves the status of all supported HF LLM Serverless Inf
|
|
94 |
If you are a student or you just want to quickly see what models are available to experiment for free, you are most likely highly interested on the free API huggingface provides... but like me, you struggle to find what models are available or not!
|
95 |
This is why I made this space that every 2 hours checks and updates the status of the list of LLMs that are in theory supported by retrieving the list in `InferenceClient().list_deployed_models("text-generation-inference")['text-generation']`.
|
96 |
|
97 |
-
So all you need is plug:
|
98 |
```py
|
99 |
from huggingface_hub import InferenceClient
|
100 |
inf = InferenceClient(model = "MODEL", token = "TOKEN")
|
|
|
42 |
def update_data():
|
43 |
data = get_available_free()
|
44 |
df = pd.DataFrame(data)
|
45 |
+
df = df.sort_values(by=['API', 'Text Completion', 'Chat Completion'])
|
46 |
return df
|
47 |
|
48 |
def display_table(search_query=""):
|
|
|
95 |
If you are a student or you just want to quickly see what models are available to experiment for free, you are most likely highly interested on the free API huggingface provides... but like me, you struggle to find what models are available or not!
|
96 |
This is why I made this space that every 2 hours checks and updates the status of the list of LLMs that are in theory supported by retrieving the list in `InferenceClient().list_deployed_models("text-generation-inference")['text-generation']`.
|
97 |
|
98 |
+
So all you need is to plug:
|
99 |
```py
|
100 |
from huggingface_hub import InferenceClient
|
101 |
inf = InferenceClient(model = "MODEL", token = "TOKEN")
|