import transformers from transformers import pipeline text_speech=pipeline(model="suno/bark") import gradio as gr def text_to_speech(message): texte = text_speech(message) return texte iface = gr.Interface(text_to_speech, inputs = 'text', outputs = 'audio', title = 'text to Audio Application', description = 'A simple application to convert PDF files in audio speech. Upload your own file, or click one of the examples to load them.', ) iface.launch()