mskov commited on
Commit
4d77a90
·
1 Parent(s): 88f2c17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -91,7 +91,9 @@ def inference(audio, prompt, model, temperature, latest):
91
  op2 = infersNew[1][0]
92
  op3 = infersNew[2][0]
93
  op4 = infersNew[3][0]
94
- op5 = infersNew[4][0]
 
 
95
 
96
 
97
  print("INFERS TYPE: ", type(infers), "INFERS ", infers)
 
91
  op2 = infersNew[1][0]
92
  op3 = infersNew[2][0]
93
  op4 = infersNew[3][0]
94
+ if infersNew[4][0] != None:
95
+ op5 = infersNew[4][0]
96
+ else: op5 = infersNew[1][1]
97
 
98
 
99
  print("INFERS TYPE: ", type(infers), "INFERS ", infers)