vumichien commited on
Commit
e9811a9
·
1 Parent(s): 447ae70

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -108,7 +108,7 @@ async def predict(
108
  start_time = time.time()
109
  error_message, score = None, None
110
 
111
- if len(word) != len(pitch):
112
  error_message = "Length of word and pitch input is not equal"
113
  word_preds = query_raw(upload_audio, word, processor, processor_with_lm, quantized_model, temperature=temperature)
114
  if pitch != "None":
 
108
  start_time = time.time()
109
  error_message, score = None, None
110
 
111
+ if len(word) != len(pitch) and pitch != "None":
112
  error_message = "Length of word and pitch input is not equal"
113
  word_preds = query_raw(upload_audio, word, processor, processor_with_lm, quantized_model, temperature=temperature)
114
  if pitch != "None":