mskov commited on
Commit
182346b
Β·
1 Parent(s): bac1bec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,6 +22,9 @@ dataset = load_dataset("mskov/miso_test", split="test").cast_column("audio", Aud
22
 
23
  print(dataset, "and at 0[audio][array] ", dataset[0]["audio"]["array"], type(dataset[0]["audio"]["array"]), "and at audio : ", dataset[0]["audio"])
24
 
 
 
 
25
  def evalWhisper(model, dataset):
26
  model.eval()
27
  print("model.eval ", model.eval())
@@ -49,7 +52,6 @@ def evalWhisper(model, dataset):
49
 
50
  def transcribe(audio):
51
  text = pipe(audio)["text"]
52
- test = evalWhisper(model, dataset)
53
  return text, test
54
 
55
  iface = gr.Interface(
 
22
 
23
  print(dataset, "and at 0[audio][array] ", dataset[0]["audio"]["array"], type(dataset[0]["audio"]["array"]), "and at audio : ", dataset[0]["audio"])
24
 
25
+ test = evalWhisper(model, dataset)
26
+ print("test ", test)
27
+
28
  def evalWhisper(model, dataset):
29
  model.eval()
30
  print("model.eval ", model.eval())
 
52
 
53
  def transcribe(audio):
54
  text = pipe(audio)["text"]
 
55
  return text, test
56
 
57
  iface = gr.Interface(