Spaces:
Runtime error
Runtime error
ryanrwatkins
commited on
Commit
Β·
51b7af6
1
Parent(s):
5985a24
Update app.py
Browse files
app.py
CHANGED
@@ -229,11 +229,11 @@ with gr.Blocks(css=css) as demo:
|
|
229 |
|
230 |
|
231 |
with gr.Column(elem_id="col-container"):
|
232 |
-
with open("embeddings.pkl", 'rb') as f:
|
233 |
-
|
234 |
|
235 |
-
query = str("performance")
|
236 |
-
docs = new_docsearch.similarity_search(query)
|
237 |
|
238 |
gr.Markdown("""# Chat with Needs Assessment Experts (Past and Present)
|
239 |
## Ask questions of experts on needs assessments, get responses from *needs assessment* version of ChatGPT.
|
@@ -263,7 +263,7 @@ with gr.Blocks(css=css) as demo:
|
|
263 |
input_message.submit(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, total_tokens_str, state])
|
264 |
btn_clear_conversation.click(clear_conversation, [], [input_message, chatbot, total_tokens_str, state])
|
265 |
#prompt_template.change(on_prompt_template_change, inputs=[prompt_template], outputs=[prompt_template_preview])
|
266 |
-
prompt_template.change(
|
267 |
|
268 |
|
269 |
demo.load(download_prompt_templates, inputs=None, outputs=[prompt_template], queur=False)
|
|
|
229 |
|
230 |
|
231 |
with gr.Column(elem_id="col-container"):
|
232 |
+
#with open("embeddings.pkl", 'rb') as f:
|
233 |
+
# new_docsearch = pickle.load(f)
|
234 |
|
235 |
+
#query = str("performance")
|
236 |
+
#docs = new_docsearch.similarity_search(query)
|
237 |
|
238 |
gr.Markdown("""# Chat with Needs Assessment Experts (Past and Present)
|
239 |
## Ask questions of experts on needs assessments, get responses from *needs assessment* version of ChatGPT.
|
|
|
263 |
input_message.submit(submit_message, [ input_message, prompt_template, temperature, max_tokens, context_length, state], [input_message, chatbot, total_tokens_str, state])
|
264 |
btn_clear_conversation.click(clear_conversation, [], [input_message, chatbot, total_tokens_str, state])
|
265 |
#prompt_template.change(on_prompt_template_change, inputs=[prompt_template], outputs=[prompt_template_preview])
|
266 |
+
prompt_template.change(on_prompt_template_change_description, inputs=[prompt_template], outputs=[prompt_template_preview])
|
267 |
|
268 |
|
269 |
demo.load(download_prompt_templates, inputs=None, outputs=[prompt_template], queur=False)
|