Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def evaluate(
|
|
130 |
options = whisper.DecodingOptions()
|
131 |
result = whisper.decode(model1, mel, options)
|
132 |
|
133 |
-
instruction = result.text
|
134 |
|
135 |
prompt = generate_prompt(instruction, input)
|
136 |
inputs = tokenizer(prompt, return_tensors="pt")
|
|
|
130 |
options = whisper.DecodingOptions()
|
131 |
result = whisper.decode(model1, mel, options)
|
132 |
|
133 |
+
instruction = result.text.strip()
|
134 |
|
135 |
prompt = generate_prompt(instruction, input)
|
136 |
inputs = tokenizer(prompt, return_tensors="pt")
|