khalidey commited on
Commit
c5a8764
1 Parent(s): 79e5d64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ pipe2 = pipeline('text-generation', model='birgermoell/swedish-gpt')
6
 
7
  def transcribe(audio):
8
  text = pipe1(audio)["text"]
9
- generated_text = pipe2(text, max_length = 30, num_return_sequences=2)[0]['generated_text']
10
  return text, generated_text
11
 
12
  iface = gr.Interface(
 
6
 
7
  def transcribe(audio):
8
  text = pipe1(audio)["text"]
9
+ generated_text = pipe2(text, max_length = 50, num_return_sequences=2)[0]['generated_text']
10
  return text, generated_text
11
 
12
  iface = gr.Interface(