Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,8 +55,7 @@ def generate(
|
|
55 |
|
56 |
client = InferenceClient()
|
57 |
clientList = (client.list_deployed_models('text-generation-inference'))['text-generation']
|
58 |
-
for
|
59 |
-
model = model2api[i]
|
60 |
if model in clientList:
|
61 |
client = InferenceClient(model, token=HF_TOKEN)
|
62 |
print(f"Choosen model: {model}")
|
|
|
55 |
|
56 |
client = InferenceClient()
|
57 |
clientList = (client.list_deployed_models('text-generation-inference'))['text-generation']
|
58 |
+
for model in model2api:
|
|
|
59 |
if model in clientList:
|
60 |
client = InferenceClient(model, token=HF_TOKEN)
|
61 |
print(f"Choosen model: {model}")
|