Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,9 +50,9 @@ def generate_key():
|
|
50 |
timer = threading.Timer(10, drop_namespace, [unique_key])
|
51 |
timer.start()
|
52 |
# generate new namespace in pinecone
|
53 |
-
|
54 |
|
55 |
-
return unique_key
|
|
|
56 |
|
57 |
##################### Process #####################
|
58 |
def main(conf):
|
@@ -69,14 +69,14 @@ def main(conf):
|
|
69 |
gr.Markdown("# Your user Configurations")
|
70 |
gr.Markdown("**2 Options:**")
|
71 |
gr.Markdown("""1. Generate a unique key to upload your personal transcripts.
|
|
|
72 |
Your documents will be queryable for 1 hour after generation.""")
|
73 |
gr.Markdown("""2. Or, go straight to the next tab to just ask your question to the
|
74 |
meetings that are already included!""")
|
75 |
create_unique_key = gr.Button("Generate unique key")
|
76 |
output_unique_key = gr.Textbox(label="Your session key & time.")
|
77 |
create_unique_key.click(fn=generate_key,
|
78 |
-
|
79 |
-
outputs=output_unique_key)
|
80 |
|
81 |
gr.Markdown("### Upload Transcript and Necessary Context")
|
82 |
load_file = gr.UploadButton(label="Upload Transcript (.vtt)",
|
|
|
50 |
timer = threading.Timer(10, drop_namespace, [unique_key])
|
51 |
timer.start()
|
52 |
# generate new namespace in pinecone
|
|
|
53 |
|
54 |
+
return unique_key
|
55 |
+
|
56 |
|
57 |
##################### Process #####################
|
58 |
def main(conf):
|
|
|
69 |
gr.Markdown("# Your user Configurations")
|
70 |
gr.Markdown("**2 Options:**")
|
71 |
gr.Markdown("""1. Generate a unique key to upload your personal transcripts.
|
72 |
+
Copy this key to use in the next page.
|
73 |
Your documents will be queryable for 1 hour after generation.""")
|
74 |
gr.Markdown("""2. Or, go straight to the next tab to just ask your question to the
|
75 |
meetings that are already included!""")
|
76 |
create_unique_key = gr.Button("Generate unique key")
|
77 |
output_unique_key = gr.Textbox(label="Your session key & time.")
|
78 |
create_unique_key.click(fn=generate_key,
|
79 |
+
outputs=output_unique_key).style(show_copy_button=True, container=False)
|
|
|
80 |
|
81 |
gr.Markdown("### Upload Transcript and Necessary Context")
|
82 |
load_file = gr.UploadButton(label="Upload Transcript (.vtt)",
|