Spaces:
Runtime error
Runtime error
Commit
•
964f12c
1
Parent(s):
7112004
Update app.py
Browse files
app.py
CHANGED
@@ -1036,9 +1036,14 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
1036 |
embeddings_text_submit.click(update_embeddings,
|
1037 |
inputs=[embeddings_text_box, embeddings_state, qa_chain_state],
|
1038 |
outputs=[docsearch_state])
|
|
|
|
|
|
|
|
|
|
|
|
|
1039 |
|
1040 |
-
|
1041 |
-
update_embeddings(ARC, embeddings_state, qa_chain_state)
|
1042 |
|
1043 |
gr.HTML("""
|
1044 |
<p>This application, developed by <a href='https://www.linkedin.com/in/javafxpert/'>James L. Weaver</a>,
|
|
|
1036 |
embeddings_text_submit.click(update_embeddings,
|
1037 |
inputs=[embeddings_text_box, embeddings_state, qa_chain_state],
|
1038 |
outputs=[docsearch_state])
|
1039 |
+
|
1040 |
+
|
1041 |
+
embeddings2_text_submit = gr.Button(value="Activate", variant="secondary").style(full_width=False)
|
1042 |
+
embeddings2_text_submit.click(update_embeddings,
|
1043 |
+
inputs=[ARC, embeddings_state, qa_chain_state],
|
1044 |
+
outputs=[docsearch_state])
|
1045 |
|
1046 |
+
|
|
|
1047 |
|
1048 |
gr.HTML("""
|
1049 |
<p>This application, developed by <a href='https://www.linkedin.com/in/javafxpert/'>James L. Weaver</a>,
|