BALAKA commited on
Commit
d297dd6
·
1 Parent(s): 131d766

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def resample(file_path):
42
 
43
 
44
  def tran_script(file_path):
45
- if type(file_path) == 'str':
46
  speech = resample(file_path)
47
  inputs = processor(speech, sampling_rate=16_000,
48
  return_tensors="pt", padding=True)
 
42
 
43
 
44
  def tran_script(file_path):
45
+ if type(file_path is str):
46
  speech = resample(file_path)
47
  inputs = processor(speech, sampling_rate=16_000,
48
  return_tensors="pt", padding=True)