Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import pickle
|
|
6 |
from query_data import get_chain
|
7 |
from threading import Lock
|
8 |
|
9 |
-
with open("
|
10 |
vectorstore = pickle.load(f)
|
11 |
|
12 |
|
@@ -67,22 +67,20 @@ with block:
|
|
67 |
with gr.Row():
|
68 |
message = gr.Textbox(
|
69 |
label="What's your question?",
|
70 |
-
placeholder="Ask questions about anything covered in the
|
71 |
lines=1,
|
72 |
)
|
73 |
submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
|
74 |
|
75 |
gr.Examples(
|
76 |
examples=[
|
77 |
-
"
|
78 |
-
"
|
79 |
-
"Explain the multiplier process.",
|
80 |
-
"To what extent were the problems of the crisis decades caused by the actions of the US?"
|
81 |
],
|
82 |
inputs=message,
|
83 |
)
|
84 |
|
85 |
-
gr.HTML("Demo application of a LangChain chain, built on
|
86 |
|
87 |
gr.HTML(
|
88 |
"<center>Powered by <a href='https://github.com/hwchase17/langchain'>LangChain 🦜️🔗</a></center>"
|
|
|
6 |
from query_data import get_chain
|
7 |
from threading import Lock
|
8 |
|
9 |
+
with open("case1vectorstore.pkl", "rb") as f:
|
10 |
vectorstore = pickle.load(f)
|
11 |
|
12 |
|
|
|
67 |
with gr.Row():
|
68 |
message = gr.Textbox(
|
69 |
label="What's your question?",
|
70 |
+
placeholder="Ask questions about anything covered in the case.",
|
71 |
lines=1,
|
72 |
)
|
73 |
submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
|
74 |
|
75 |
gr.Examples(
|
76 |
examples=[
|
77 |
+
"Summarise the key contents of this case in an easy to understand manner, without adding additional details."
|
78 |
+
"Provide a chronological breakdown of what transpired during the case."
|
|
|
|
|
79 |
],
|
80 |
inputs=message,
|
81 |
)
|
82 |
|
83 |
+
gr.HTML("Demo application of a LangChain chain, built on LawNet.")
|
84 |
|
85 |
gr.HTML(
|
86 |
"<center>Powered by <a href='https://github.com/hwchase17/langchain'>LangChain 🦜️🔗</a></center>"
|