Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from transformers import pipeline
|
| 3 |
import torch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def greet(name):
|
| 6 |
return "Hello " + name
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from transformers import pipeline,WhisperProcessor, WhisperForConditionalGeneration
|
| 3 |
import torch
|
| 4 |
+
import librosa
|
| 5 |
+
|
| 6 |
+
checkpoint = "openai/whisper-base"
|
| 7 |
+
# checkpoint = "/innev/open-ai/huggingface/openai/whisper-base"
|
| 8 |
+
processor = WhisperProcessor.from_pretrained(checkpoint)
|
| 9 |
+
model = WhisperForConditionalGeneration.from_pretrained(checkpoint)
|
| 10 |
|
| 11 |
def greet(name):
|
| 12 |
return "Hello " + name
|