tykiww commited on
Commit
35df5ff
1 Parent(s): 14afe69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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+': Started 1 hour session.'
 
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
- #inputs=create_unique_key,
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)",