Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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"
|