Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,8 +14,10 @@ print("Running on CPU")
|
|
| 14 |
whisper_model = whisper.load_model("tiny")
|
| 15 |
|
| 16 |
# Load the text summarization model from Hugging Face
|
|
|
|
|
|
|
| 17 |
summarizer = pipeline(task="summarization", model="facebook/bart-large-cnn")
|
| 18 |
-
|
| 19 |
|
| 20 |
# Function to transcribe and summarize the audio file
|
| 21 |
def transcribe_and_summarize(audio):
|
|
|
|
| 14 |
whisper_model = whisper.load_model("tiny")
|
| 15 |
|
| 16 |
# Load the text summarization model from Hugging Face
|
| 17 |
+
#summarizer = pipeline(task="summarization", model="facebook/bart-large-cnn")
|
| 18 |
+
#summarizer = pipeline("summarization", model="allenai/led-base-16384")
|
| 19 |
summarizer = pipeline(task="summarization", model="facebook/bart-large-cnn")
|
| 20 |
+
|
| 21 |
|
| 22 |
# Function to transcribe and summarize the audio file
|
| 23 |
def transcribe_and_summarize(audio):
|