mafoaurelie commited on
Commit
aa3556f
1 Parent(s): a2aa4b8

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import transformers
2
+ from transformers import pipeline
3
+ text_speech=pipeline(model="suno/bark")
4
+ import gradio as gr
5
+ def text_to_speech(message):
6
+ texte = text_speech(message)
7
+
8
+ return texte
9
+
10
+ iface = gr.Interface(text_to_speech, inputs = 'text',
11
+ outputs = 'audio',
12
+ title = 'text to Audio Application',
13
+ description = 'A simple application to convert PDF files in audio speech. Upload your own file, or click one of the examples to load them.',
14
+ )
15
+
16
+ iface.launch()