Abrahamau commited on
Commit
26c3cd6
·
verified ·
1 Parent(s): d9fcb9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ def guessanAge(model, image):
25
  description = imgclassifier(image)
26
  return description
27
 
28
- @spaces.GPU(duration=120)
29
  def text2speech(text, sample):
30
  os.environ["COQUI_TOS_AGREED"] = "1"
31
  print(text, sample)
@@ -76,7 +76,7 @@ tab2 = gr.Interface(
76
  textbox = gr.Textbox(value="good morning pineapple! looking very good very nice!")
77
  tab3 = gr.Interface(
78
  fn=text2speech,
79
- inputs=[textbox, gr.Audio(sources=['upload', 'microphone'], type="path")],
80
  outputs=["audio"],
81
  )
82
 
 
25
  description = imgclassifier(image)
26
  return description
27
 
28
+ #@spaces.GPU(duration=120)
29
  def text2speech(text, sample):
30
  os.environ["COQUI_TOS_AGREED"] = "1"
31
  print(text, sample)
 
76
  textbox = gr.Textbox(value="good morning pineapple! looking very good very nice!")
77
  tab3 = gr.Interface(
78
  fn=text2speech,
79
+ inputs=[textbox, gr.Audio(sources=['upload', 'microphone'], type="filepath", format="wav")],
80
  outputs=["audio"],
81
  )
82