Update app.py
Browse files
app.py
CHANGED
@@ -43,9 +43,9 @@ def parse_transcription(logits):
|
|
43 |
|
44 |
|
45 |
# Function to retrieve an answer based on a question (using fuzzy matching)
|
46 |
-
def get_answer(wav_file, text=None):
|
47 |
|
48 |
-
if type(wav_file) != 'str':
|
49 |
input_values = read_file_and_process(wav_file)
|
50 |
with torch.no_grad():
|
51 |
logits = model(**input_values).logits
|
|
|
43 |
|
44 |
|
45 |
# Function to retrieve an answer based on a question (using fuzzy matching)
|
46 |
+
def get_answer(wav_file=None, text=None):
|
47 |
|
48 |
+
if type(wav_file) != 'str' or type(text != 'str'):
|
49 |
input_values = read_file_and_process(wav_file)
|
50 |
with torch.no_grad():
|
51 |
logits = model(**input_values).logits
|