Update app.py
Browse files
app.py
CHANGED
|
@@ -161,15 +161,15 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 161 |
file_output = gr.File(label="ダウンロード")
|
| 162 |
submit_button.click(fn=text_to_speech, inputs=[file_input], outputs=[file_output])
|
| 163 |
with gr.Tab("カテゴリ分類分類"):
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
demo.launch(share=True)
|
| 175 |
|
|
|
|
| 161 |
file_output = gr.File(label="ダウンロード")
|
| 162 |
submit_button.click(fn=text_to_speech, inputs=[file_input], outputs=[file_output])
|
| 163 |
with gr.Tab("カテゴリ分類分類"):
|
| 164 |
+
with gr.Column():
|
| 165 |
+
input_text_kousei = gr.Textbox(label="分類観点を入力してください。",value="xxxxxxxに関する内容の場合は「該当あり」と書いてください。")
|
| 166 |
+
with gr.Row():
|
| 167 |
+
inputs=gr.File(label="CSVファイルをアップロード")
|
| 168 |
+
outputs=gr.File(label="ダウンロード", file_count="singular")
|
| 169 |
+
gr.Button("分類スタート").click(
|
| 170 |
+
check,
|
| 171 |
+
inputs=[inputs,input_text_kousei],
|
| 172 |
+
outputs=[outputs]
|
| 173 |
+
)
|
| 174 |
demo.launch(share=True)
|
| 175 |
|