Spaces:
Runtime error
Runtime error
import gradio as gr | |
import torch | |
import whisper | |
### ββββββββββββββββββββββββββββββββββββββββ | |
title="Whisper to Emotion" | |
### ββββββββββββββββββββββββββββββββββββββββ | |
whisper_model = whisper.load_model("small") | |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") | |
record_input = gr.Audio(source="microphone",type="filepath", show_label=False) | |
def greet(name): | |
return "Hello " + name + "!!" | |
iface = gr.Interface(fn=greet, inputs=record_input, outputs="text") | |
iface.launch() |