Spaces:
Sleeping
Sleeping
btn_create_question
Browse files
app.py
CHANGED
@@ -547,8 +547,6 @@ def prev_slide():
|
|
547 |
def next_slide():
|
548 |
return update_slide(1)
|
549 |
|
550 |
-
|
551 |
-
|
552 |
with gr.Blocks() as demo:
|
553 |
with gr.Row():
|
554 |
with gr.Column():
|
@@ -579,6 +577,8 @@ with gr.Blocks() as demo:
|
|
579 |
btn_1 = gr.Button()
|
580 |
btn_2 = gr.Button()
|
581 |
btn_3 = gr.Button()
|
|
|
|
|
582 |
|
583 |
send_button.click(
|
584 |
respond,
|
@@ -590,6 +590,7 @@ with gr.Blocks() as demo:
|
|
590 |
btn_2.click(respond, inputs=[btn_2, df_string_output, chatbot], outputs=[msg, chatbot])
|
591 |
btn_3.click(respond, inputs=[btn_3, df_string_output, chatbot], outputs=[msg, chatbot])
|
592 |
|
|
|
593 |
|
594 |
# file_upload.change(process_file, inputs=file_upload, outputs=df_string_output)
|
595 |
file_upload.change(process_file, inputs=file_upload, outputs=[btn_1, btn_2, btn_3, df_summarise, df_string_output])
|
|
|
547 |
def next_slide():
|
548 |
return update_slide(1)
|
549 |
|
|
|
|
|
550 |
with gr.Blocks() as demo:
|
551 |
with gr.Row():
|
552 |
with gr.Column():
|
|
|
577 |
btn_1 = gr.Button()
|
578 |
btn_2 = gr.Button()
|
579 |
btn_3 = gr.Button()
|
580 |
+
gr.Markdown("## ιζ°ηζει‘")
|
581 |
+
btn_create_question = gr.Button("Create Questions")
|
582 |
|
583 |
send_button.click(
|
584 |
respond,
|
|
|
590 |
btn_2.click(respond, inputs=[btn_2, df_string_output, chatbot], outputs=[msg, chatbot])
|
591 |
btn_3.click(respond, inputs=[btn_3, df_string_output, chatbot], outputs=[msg, chatbot])
|
592 |
|
593 |
+
btn_create_question.click(generate_questions, inputs = [TRANSCRIPTS], outputs = [btn_1, btn_2, btn_3])
|
594 |
|
595 |
# file_upload.change(process_file, inputs=file_upload, outputs=df_string_output)
|
596 |
file_upload.change(process_file, inputs=file_upload, outputs=[btn_1, btn_2, btn_3, df_summarise, df_string_output])
|