Kevin676 commited on
Commit
5f412d2
1 Parent(s): 296598d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")