Omnibus commited on
Commit
647ad37
1 Parent(s): 21b46b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -20,14 +20,15 @@ def test_models():
20
  log_box=[]
21
  for model in models:
22
  try:
 
23
  client= InferenceClient(model)
24
  outp=client.text_generation("What is a cat")
25
  log = {"Model":model,"Success":outp}
26
- print(log)
27
  log_box.append(log)
28
  except Exception as e:
29
  log = {"Model":model,"Error":e}
30
- print(log)
31
  log_box.append(log)
32
  return log_box
33
 
 
20
  log_box=[]
21
  for model in models:
22
  try:
23
+ print(f'trying: {model}\n')
24
  client= InferenceClient(model)
25
  outp=client.text_generation("What is a cat")
26
  log = {"Model":model,"Success":outp}
27
+ print(f'{log}\n')
28
  log_box.append(log)
29
  except Exception as e:
30
  log = {"Model":model,"Error":e}
31
+ print(f'{log}\n')
32
  log_box.append(log)
33
  return log_box
34