Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def guessanAge(model, image):
|
|
| 25 |
description = imgclassifier(image)
|
| 26 |
return description
|
| 27 |
|
| 28 |
-
|
| 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="
|
| 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 |
|