Spaces:
Runtime error
Runtime error
storresbusquets
commited on
Commit
·
b397f13
1
Parent(s):
a445c9d
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ class GradioInference():
|
|
10 |
self.current_size = "base"
|
11 |
self.loaded_model = whisper.load_model(self.current_size)
|
12 |
self.yt = None
|
13 |
-
self.summarizer = pipeline("summarization", model="
|
14 |
|
15 |
# Initialize VoiceLabT5 model and tokenizer
|
16 |
self.keyword_model = T5ForConditionalGeneration.from_pretrained("Voicelab/vlt5-base-keywords")
|
@@ -126,7 +126,7 @@ with block as demo:
|
|
126 |
audio_file = gr.Audio(type="filepath")
|
127 |
with gr.Row().style(equal_height=True):
|
128 |
text = gr.Textbox(label="Transcription", placeholder="Transcription Output...", lines=10).style(show_copy_button=True, container=False)
|
129 |
-
|
130 |
summary = gr.Textbox(label="Summary", placeholder="Summary Output", lines=5)
|
131 |
keywords = gr.Textbox(label="Keywords", placeholder="Keywords Output", lines=5)
|
132 |
label = gr.Label(label="Sentiment Analysis")
|
|
|
10 |
self.current_size = "base"
|
11 |
self.loaded_model = whisper.load_model(self.current_size)
|
12 |
self.yt = None
|
13 |
+
self.summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
14 |
|
15 |
# Initialize VoiceLabT5 model and tokenizer
|
16 |
self.keyword_model = T5ForConditionalGeneration.from_pretrained("Voicelab/vlt5-base-keywords")
|
|
|
126 |
audio_file = gr.Audio(type="filepath")
|
127 |
with gr.Row().style(equal_height=True):
|
128 |
text = gr.Textbox(label="Transcription", placeholder="Transcription Output...", lines=10).style(show_copy_button=True, container=False)
|
129 |
+
with gr.Row().style(equal_height=True):
|
130 |
summary = gr.Textbox(label="Summary", placeholder="Summary Output", lines=5)
|
131 |
keywords = gr.Textbox(label="Keywords", placeholder="Keywords Output", lines=5)
|
132 |
label = gr.Label(label="Sentiment Analysis")
|