Spaces:
Sleeping
Sleeping
gr.Markdown("## 你是不是有一樣的問題想問?")
Browse files
app.py
CHANGED
@@ -1710,12 +1710,12 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
1710 |
with gr.Tab("重點"):
|
1711 |
df_summarise = gr.Textbox(container=True, show_copy_button=True, lines=40)
|
1712 |
with gr.Tab("問題"):
|
1713 |
-
gr.Markdown("##
|
1714 |
btn_1 = gr.Button()
|
1715 |
btn_2 = gr.Button()
|
1716 |
btn_3 = gr.Button()
|
1717 |
-
gr.Markdown("## 重新生成問題"
|
1718 |
-
btn_create_question = gr.Button("
|
1719 |
|
1720 |
with gr.Accordion("See Details", open=False):
|
1721 |
with gr.Tab("本文"):
|
@@ -1885,7 +1885,11 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
1885 |
outputs=[msg, chatbot, thread_id]
|
1886 |
)
|
1887 |
|
1888 |
-
btn_create_question.click(
|
|
|
|
|
|
|
|
|
1889 |
|
1890 |
# file_upload.change(process_file, inputs=file_upload, outputs=df_string_output)
|
1891 |
file_upload.change(process_file, inputs=file_upload, outputs=[btn_1, btn_2, btn_3, df_summarise, df_string_output])
|
|
|
1710 |
with gr.Tab("重點"):
|
1711 |
df_summarise = gr.Textbox(container=True, show_copy_button=True, lines=40)
|
1712 |
with gr.Tab("問題"):
|
1713 |
+
gr.Markdown("## 你是不是有一樣的問題想問?")
|
1714 |
btn_1 = gr.Button()
|
1715 |
btn_2 = gr.Button()
|
1716 |
btn_3 = gr.Button()
|
1717 |
+
gr.Markdown("## 重新生成問題")
|
1718 |
+
btn_create_question = gr.Button("生成其他問題", variant="primary")
|
1719 |
|
1720 |
with gr.Accordion("See Details", open=False):
|
1721 |
with gr.Tab("本文"):
|
|
|
1885 |
outputs=[msg, chatbot, thread_id]
|
1886 |
)
|
1887 |
|
1888 |
+
btn_create_question.click(
|
1889 |
+
change_questions,
|
1890 |
+
inputs = [password, df_string_output],
|
1891 |
+
outputs = [btn_1, btn_2, btn_3]
|
1892 |
+
)
|
1893 |
|
1894 |
# file_upload.change(process_file, inputs=file_upload, outputs=df_string_output)
|
1895 |
file_upload.change(process_file, inputs=file_upload, outputs=[btn_1, btn_2, btn_3, df_summarise, df_string_output])
|