SandraCLV commited on
Commit
5eb99ac
·
1 Parent(s): af69d36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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