patrickvonplaten commited on
Commit
8e7e341
1 Parent(s): f12b048

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -22,9 +22,9 @@ def restore(audio, original_transcript):
22
  print(error)
23
  data, samplerate = sf.read(path)
24
 
25
- text, probs = restorer(data, original_transcript, samplerate, num_beams=1)
26
 
27
- return text, probs
28
 
29
 
30
  gr.Interface(
@@ -36,6 +36,5 @@ gr.Interface(
36
  ],
37
  outputs=[
38
  gr.outputs.Textbox(label='Restored text'),
39
- gr.outputs.Number(label='Log prob')
40
  ]
41
  ).launch()
 
22
  print(error)
23
  data, samplerate = sf.read(path)
24
 
25
+ text, _ = restorer(data, original_transcript, samplerate, num_beams=1)
26
 
27
+ return text
28
 
29
 
30
  gr.Interface(
 
36
  ],
37
  outputs=[
38
  gr.outputs.Textbox(label='Restored text'),
 
39
  ]
40
  ).launch()