Spaces:
mskov
/
Runtime error

mskov commited on
Commit
9e3d054
·
1 Parent(s): b8f37d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,7 +47,8 @@ def inference(audio):
47
  # Added prompt below
48
  input_prompt = "The following is a transcript of someone talking, please predict what they will say next. \n"
49
  ### code
50
- input_ids = tokenizer(input_prompt, result.text, return_tensors="pt").input_ids
 
51
  print("inputs ", input_ids)
52
 
53
  # prompt length
 
47
  # Added prompt below
48
  input_prompt = "The following is a transcript of someone talking, please predict what they will say next. \n"
49
  ### code
50
+ input_total = input_prompt + result.text
51
+ input_ids = tokenizer(input_total, return_tensors="pt").input_ids
52
  print("inputs ", input_ids)
53
 
54
  # prompt length