futranbg commited on
Commit
b2cfaba
1 Parent(s): 210da3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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 i in range(0, len(model2api)):
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}")