Update app.py
Browse files
app.py
CHANGED
|
@@ -55,13 +55,13 @@ def generate_audio(inputs):
|
|
| 55 |
|
| 56 |
return sr, audio_data
|
| 57 |
|
| 58 |
-
gr.Interface(
|
| 59 |
title = title,
|
| 60 |
description = description,
|
| 61 |
fn=generate_audio,
|
| 62 |
inputs= gr.Text(label="Input Text"),
|
| 63 |
examples = examples,
|
| 64 |
-
outputs ="audio")
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
|
|
|
| 55 |
|
| 56 |
return sr, audio_data
|
| 57 |
|
| 58 |
+
demo = gr.Interface(
|
| 59 |
title = title,
|
| 60 |
description = description,
|
| 61 |
fn=generate_audio,
|
| 62 |
inputs= gr.Text(label="Input Text"),
|
| 63 |
examples = examples,
|
| 64 |
+
outputs ="audio")
|
| 65 |
|
| 66 |
+
if __name__ == "__main__":
|
| 67 |
+
demo.launch()
|