Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
def process_audio(audio_file, min_length, max_length):
|
3 |
try:
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import whisper
|
3 |
+
from transformers import pipeline
|
4 |
+
import pandas as pd
|
5 |
+
|
6 |
+
whisper_model = whisper.load_model("base")
|
7 |
+
|
8 |
+
summarization = pipeline("summarization", model="facebook/bart-large-cnn")
|
9 |
|
10 |
def process_audio(audio_file, min_length, max_length):
|
11 |
try:
|