Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def parse(wav_file):
|
|
| 45 |
# Function to retrieve an answer based on a question (using fuzzy matching)
|
| 46 |
def get_answer(wav_file):
|
| 47 |
input_values = read_file_and_process(wav_file)
|
| 48 |
-
|
| 49 |
logits = model(**input_values).logits
|
| 50 |
user_question = parse_transcription(logits)
|
| 51 |
|
|
|
|
| 45 |
# Function to retrieve an answer based on a question (using fuzzy matching)
|
| 46 |
def get_answer(wav_file):
|
| 47 |
input_values = read_file_and_process(wav_file)
|
| 48 |
+
with torch.no_grad():
|
| 49 |
logits = model(**input_values).logits
|
| 50 |
user_question = parse_transcription(logits)
|
| 51 |
|