Abrahamau commited on
Commit
69c8b67
·
verified ·
1 Parent(s): 4dcca79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -70,12 +70,15 @@ tab2 = gr.Interface(
70
  inputs=[radio2, gr.Image(type="pil")],
71
  outputs=["text"],
72
  )
73
- textbox = gr.Textbox(value="good morning pineapple! looking very good very nice!")
74
- tab3 = gr.Interface(
75
- fn=text2speech,
76
- inputs=[textbox, gr.Audio(sources=['microphone'], type="filepath", format="wav", value="sampleaudio/abraham.wav")],
77
- outputs=["audio"],
78
- )
 
 
 
79
 
80
  radio4 = gr.Radio(["black-forest-labs/FLUX.1-schnell"], value="black-forest-labs/FLUX.1-schnell", label="Select", info="text to image")
81
  tab4 = gr.Interface(
 
70
  inputs=[radio2, gr.Image(type="pil")],
71
  outputs=["text"],
72
  )
73
+
74
+
75
+ with gr.Blocks() as tab3:
76
+ textbox = gr.Textbox(value="good morning pineapple! looking very good very nice!")
77
+ gr.Interface(
78
+ fn=text2speech,
79
+ inputs=[textbox, gr.Audio(sources=['microphone'], type="filepath", format="wav", value="sampleaudio/abraham.wav")],
80
+ outputs=["audio"],
81
+ )
82
 
83
  radio4 = gr.Radio(["black-forest-labs/FLUX.1-schnell"], value="black-forest-labs/FLUX.1-schnell", label="Select", info="text to image")
84
  tab4 = gr.Interface(