guan-wang commited on
Commit
2309e11
·
verified ·
1 Parent(s): 33e8d5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
  import numpy as np
4
 
5
- transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-tiny.en")
6
 
7
  def transcribe(audio):
8
  sr, y = audio
 
2
  from transformers import pipeline
3
  import numpy as np
4
 
5
+ transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-tiny.en", generate_kwargs={"temperature": 1.0})
6
 
7
  def transcribe(audio):
8
  sr, y = audio