Spaces:
Running
Running
ryanrwatkins
commited on
Commit
•
5b77bb9
1
Parent(s):
70b2ccd
Update app.py
Browse files
app.py
CHANGED
@@ -228,15 +228,15 @@ with gr.Blocks(css=css) as demo:
|
|
228 |
|
229 |
|
230 |
with gr.Column(elem_id="col-container"):
|
231 |
-
|
232 |
-
|
233 |
|
234 |
-
|
235 |
-
|
236 |
|
237 |
gr.Markdown("""# Chat with Needs Assessment Experts (Past and Present)
|
238 |
## Ask questions of experts on needs assessments, get responses from *needs assessment* version of ChatGPT.
|
239 |
-
Ask questions of all of them, or pick your expert."""
|
240 |
elem_id="header")
|
241 |
|
242 |
|
|
|
228 |
|
229 |
|
230 |
with gr.Column(elem_id="col-container"):
|
231 |
+
with open("embeddings.pkl", 'rb') as f:
|
232 |
+
new_docsearch = pickle.load(f)
|
233 |
|
234 |
+
query = str("performance")
|
235 |
+
docs = new_docsearch.similarity_search(query)
|
236 |
|
237 |
gr.Markdown("""# Chat with Needs Assessment Experts (Past and Present)
|
238 |
## Ask questions of experts on needs assessments, get responses from *needs assessment* version of ChatGPT.
|
239 |
+
Ask questions of all of them, or pick your expert.""" ,
|
240 |
elem_id="header")
|
241 |
|
242 |
|