File size: 403 Bytes
fb4e25f
 
59da3de
 
 
 
fb4e25f
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

import torch
import librosa
from transformers import AutoTokenizer, AutoModelForSequenceClassification, TextClassificationPipeline, AutoModelForTokenClassification, TokenClassificationPipeline, Wav2Vec2ForCTC, Wav2Vec2Processor, Wav2Vec2ProcessorWithLM

def greet(name):
    return "Hello " + name + "!!"

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()