Bartusito commited on
Commit
709dcd3
1 Parent(s): 23cad65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,10 +1,14 @@
1
  import gradio as gr
2
  import torch
 
3
  from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
4
 
5
 
6
  def modelo1(audio):
7
- return gr.Interface.load("models/jonatasgrosman/wav2vec2-large-xlsr-53-english")
 
 
 
8
 
9
  def modelo2(text):
10
  model_id = "stabilityai/stable-diffusion-2-1"
 
1
  import gradio as gr
2
  import torch
3
+ import huggingsound
4
  from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
5
 
6
 
7
  def modelo1(audio):
8
+ model = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-english")
9
+ transcriptions = model.transcribe(audio)
10
+ return transcriptions
11
+
12
 
13
  def modelo2(text):
14
  model_id = "stabilityai/stable-diffusion-2-1"