mskov commited on
Commit
ef960af
·
1 Parent(s): 743df42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -90,7 +90,10 @@ def inference(audio, prompt, model, temperature, latest):
90
  op1 = infersNew[0][0]
91
  op2 = infersNew[1][0]
92
  op3 = infersNew[2][0]
93
- op4 = infersNew[3][0]
 
 
 
94
  try:
95
  op5 = infersNew[4][0]
96
  except KeyError:
 
90
  op1 = infersNew[0][0]
91
  op2 = infersNew[1][0]
92
  op3 = infersNew[2][0]
93
+ try:
94
+ op4 = infersNew[3][0]
95
+ except KeyError:
96
+ op4 = infersNew[0][1]
97
  try:
98
  op5 = infersNew[4][0]
99
  except KeyError: