Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from langchain_openai import OpenAIEmbeddings
|
|
2 |
from langchain_community.vectorstores import Chroma
|
3 |
from langchain_core.messages import HumanMessage, AIMessage
|
4 |
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
5 |
-
from langgraph import StateGraph, END, START
|
6 |
from langgraph.prebuilt import ToolNode
|
7 |
from langgraph.graph.message import add_messages
|
8 |
from typing_extensions import TypedDict, Annotated
|
@@ -309,7 +309,7 @@ def main():
|
|
309 |
st.markdown("---")
|
310 |
|
311 |
query = st.text_area("Enter your question:", height=100,
|
312 |
-
|
313 |
|
314 |
col1, col2 = st.columns([1, 2])
|
315 |
with col1:
|
@@ -346,4 +346,4 @@ def main():
|
|
346 |
""")
|
347 |
|
348 |
if __name__ == "__main__":
|
349 |
-
main()
|
|
|
2 |
from langchain_community.vectorstores import Chroma
|
3 |
from langchain_core.messages import HumanMessage, AIMessage
|
4 |
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
5 |
+
from langgraph.graph import StateGraph, END, START
|
6 |
from langgraph.prebuilt import ToolNode
|
7 |
from langgraph.graph.message import add_messages
|
8 |
from typing_extensions import TypedDict, Annotated
|
|
|
309 |
st.markdown("---")
|
310 |
|
311 |
query = st.text_area("Enter your question:", height=100,
|
312 |
+
placeholder="e.g., What is the latest advancement in AI research?")
|
313 |
|
314 |
col1, col2 = st.columns([1, 2])
|
315 |
with col1:
|
|
|
346 |
""")
|
347 |
|
348 |
if __name__ == "__main__":
|
349 |
+
main()
|