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