Update app.py
Browse files
app.py
CHANGED
|
@@ -124,5 +124,12 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 124 |
inputs=[inputs,input_text_kousei],
|
| 125 |
outputs=[outputs]
|
| 126 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
demo.launch(share=True)
|
| 128 |
|
|
|
|
| 124 |
inputs=[inputs,input_text_kousei],
|
| 125 |
outputs=[outputs]
|
| 126 |
)
|
| 127 |
+
with gr.Tab("音声生成"):
|
| 128 |
+
with gr.Column():
|
| 129 |
+
with gr.Row():
|
| 130 |
+
file_input = gr.File(label="Upload CSV")
|
| 131 |
+
submit_button = gr.Button("音声ファイルを生成")
|
| 132 |
+
file_output = gr.File(label="Download ZIP with Audio Files")
|
| 133 |
+
submit_button.click(fn=text_to_speech, inputs=[file_input], outputs=[file_output])
|
| 134 |
demo.launch(share=True)
|
| 135 |
|