Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,6 +62,7 @@ def drop_namespace(arg):
|
|
62 |
index.delete(namespace=arg, delete_all=True)
|
63 |
print("Deleted namespace: " + arg)
|
64 |
|
|
|
65 |
def generate_key():
|
66 |
unique_key = str(uuid.uuid1())
|
67 |
unique_key = 'User_' + unique_key
|
@@ -82,12 +83,14 @@ def main(conf):
|
|
82 |
# Main page
|
83 |
with gr.TabItem(conf["layout"]["page_names"][0]):
|
84 |
gr.Markdown(get_files.load_markdown_file(conf["layout"]["about"]))
|
85 |
-
|
86 |
-
|
87 |
|
88 |
# User config page
|
89 |
with gr.TabItem(conf["layout"]["page_names"][1]):
|
90 |
gr.Markdown("# 📁 Upload your own meeting docs")
|
|
|
|
|
91 |
create_unique_key = gr.Button("Generate session key")
|
92 |
output_unique_key = gr.Textbox(label="Copy key",
|
93 |
interactive=True ,
|
@@ -112,11 +115,15 @@ def main(conf):
|
|
112 |
create_unique_key.click(fn=b_clicked,
|
113 |
inputs=create_unique_key,
|
114 |
outputs=load_file)
|
|
|
|
|
|
|
|
|
115 |
# Meeting Question & Answer Page
|
116 |
with gr.TabItem(conf["layout"]["page_names"][2]):
|
117 |
gr.Markdown("# ❓ Query meeting docs")
|
118 |
-
gr.Markdown("""Paste session key below to query your own docs. Otherwise, skip and ask a question to analyze the pre-stored meetings.
|
119 |
-
After asking the question an answer will populate along with the meeting snippets retrieved.""")
|
120 |
session_key = gr.Textbox(label="Session key here",
|
121 |
value="")
|
122 |
|
|
|
62 |
index.delete(namespace=arg, delete_all=True)
|
63 |
print("Deleted namespace: " + arg)
|
64 |
|
65 |
+
|
66 |
def generate_key():
|
67 |
unique_key = str(uuid.uuid1())
|
68 |
unique_key = 'User_' + unique_key
|
|
|
83 |
# Main page
|
84 |
with gr.TabItem(conf["layout"]["page_names"][0]):
|
85 |
gr.Markdown(get_files.load_markdown_file(conf["layout"]["about"]))
|
86 |
+
|
87 |
+
|
88 |
|
89 |
# User config page
|
90 |
with gr.TabItem(conf["layout"]["page_names"][1]):
|
91 |
gr.Markdown("# 📁 Upload your own meeting docs")
|
92 |
+
gr.Markdown("""Be sure to retain your session key. This key is your ID to
|
93 |
+
your stored documents and is live for 1 hour after generation""")
|
94 |
create_unique_key = gr.Button("Generate session key")
|
95 |
output_unique_key = gr.Textbox(label="Copy key",
|
96 |
interactive=True ,
|
|
|
115 |
create_unique_key.click(fn=b_clicked,
|
116 |
inputs=create_unique_key,
|
117 |
outputs=load_file)
|
118 |
+
|
119 |
+
|
120 |
+
|
121 |
+
|
122 |
# Meeting Question & Answer Page
|
123 |
with gr.TabItem(conf["layout"]["page_names"][2]):
|
124 |
gr.Markdown("# ❓ Query meeting docs")
|
125 |
+
gr.Markdown("""Paste session key below to query your own personal docs. Otherwise, skip and ask a question to analyze the pre-stored meetings.
|
126 |
+
After asking the question, an answer will populate along with the meeting snippets retrieved.""")
|
127 |
session_key = gr.Textbox(label="Session key here",
|
128 |
value="")
|
129 |
|