Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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(
|