Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,11 @@ def get_available_free(use_cache = False):
|
|
10 |
if os.path.exists(str(os.getcwd())+"/data.csv"):
|
11 |
# print("Loading data from file...")
|
12 |
return pd.read_csv("data.csv").to_dict(orient='list')
|
|
|
13 |
models_dict = InferenceClient(token=HUGGINGFACE_TOKEN).list_deployed_models("text-generation-inference")
|
14 |
models = models_dict['text-generation'] + models_dict['text2text-generation']
|
15 |
models_vision = models_dict['image-text-to-text']
|
16 |
-
models_others = InferenceClient(token=HUGGINGFACE_TOKEN).list_deployed_models()["text-generation"]
|
17 |
|
18 |
models_conclusion = {
|
19 |
"Model": [],
|
|
|
10 |
if os.path.exists(str(os.getcwd())+"/data.csv"):
|
11 |
# print("Loading data from file...")
|
12 |
return pd.read_csv("data.csv").to_dict(orient='list')
|
13 |
+
|
14 |
models_dict = InferenceClient(token=HUGGINGFACE_TOKEN).list_deployed_models("text-generation-inference")
|
15 |
models = models_dict['text-generation'] + models_dict['text2text-generation']
|
16 |
models_vision = models_dict['image-text-to-text']
|
17 |
+
models_others = InferenceClient(token=HUGGINGFACE_TOKEN).list_deployed_models(frameworks="all")["text-generation"]
|
18 |
|
19 |
models_conclusion = {
|
20 |
"Model": [],
|