Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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":
|