amirgame197 commited on
Commit
b4b1e84
1 Parent(s): b703cba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -20
app.py CHANGED
@@ -17,23 +17,13 @@ def tts(text: str):
17
 
18
 
19
  article= ""
20
- with gr.Blocks(theme=gr.themes.Base()) as blocks:
21
- fn=tts
22
- inputs = gr.Textbox(label="Input")
23
- outputs = gr.Audio(label="Output", type="filepath")
24
- submit_button = gr.Button("Synthesize")
25
-
26
- submit_button.click(synthesize_speech, inputs=input_text, outputs=[output_audio])
27
- # Run the app
28
- blocks.launch()
29
-
30
- #iface = gr.Interface(
31
- # fn=tts,
32
- # inputs=[
33
- # gr.Textbox(
34
- # label="Input",
35
- # )
36
- # ],
37
- # outputs=gr.Audio(label="Output",type='filepath')
38
- #)
39
- #iface.launch()
 
17
 
18
 
19
  article= ""
20
+ iface = gr.Interface(
21
+ fn=tts,
22
+ inputs=[
23
+ gr.Textbox(
24
+ label="Input",
25
+ )
26
+ ],
27
+ outputs=gr.Audio(label="Output",type='filepath')
28
+ )
29
+ iface.launch()