Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -617,32 +617,32 @@ with demo:
|
|
617 |
outputs=[gen_key_btn],
|
618 |
)
|
619 |
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
)
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
|
647 |
|
648 |
########################## User Query Part ##########################
|
@@ -659,13 +659,13 @@ with demo:
|
|
659 |
|
660 |
with gr.Column(scale=5):
|
661 |
default_query_box = gr.Dropdown(
|
662 |
-
list(DEFAULT_QUERIES.values()), label="PROMPT
|
663 |
)
|
664 |
|
665 |
gr.Markdown("Or")
|
666 |
|
667 |
query_box = gr.Textbox(
|
668 |
-
value=
|
669 |
)
|
670 |
|
671 |
default_query_box.change(
|
|
|
617 |
outputs=[gen_key_btn],
|
618 |
)
|
619 |
|
620 |
+
########################### Main document Part ##########################
|
621 |
+
|
622 |
+
# gr.Markdown("<hr />")
|
623 |
+
# gr.Markdown("## Step 2.1: Select the document you want to encrypt\n\n"
|
624 |
+
# """To make it simple, we pre-compiled the following document, but you are free to choose
|
625 |
+
# on which part you want to run this example.
|
626 |
+
# """
|
627 |
+
# )
|
628 |
+
|
629 |
+
# with gr.Row():
|
630 |
+
# with gr.Column(scale=5):
|
631 |
+
# original_sentences_box = gr.CheckboxGroup(
|
632 |
+
# ORIGINAL_DOCUMENT,
|
633 |
+
# value=ORIGINAL_DOCUMENT,
|
634 |
+
# label="Contract:",
|
635 |
+
# show_label=True,
|
636 |
+
# )
|
637 |
+
|
638 |
+
# with gr.Column(scale=1, min_width=6):
|
639 |
+
# gr.HTML("<div style='height: 77px;'></div>")
|
640 |
+
# encrypt_doc_btn = gr.Button("Encrypt the document")
|
641 |
+
|
642 |
+
# with gr.Column(scale=5):
|
643 |
+
# encrypted_doc_box = gr.Textbox(
|
644 |
+
# label="Encrypted document:", show_label=True, interactive=False, lines=10
|
645 |
+
# )
|
646 |
|
647 |
|
648 |
########################## User Query Part ##########################
|
|
|
659 |
|
660 |
with gr.Column(scale=5):
|
661 |
default_query_box = gr.Dropdown(
|
662 |
+
list(DEFAULT_QUERIES.values()), label="PROMPT"
|
663 |
)
|
664 |
|
665 |
gr.Markdown("Or")
|
666 |
|
667 |
query_box = gr.Textbox(
|
668 |
+
value=transcription_output, label="CUSTOMIZED PROMPT:", interactive=True
|
669 |
)
|
670 |
|
671 |
default_query_box.change(
|