ageraustine commited on
Commit
8cb514e
1 Parent(s): f63549d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -6,7 +6,7 @@ from langchain_openai import ChatOpenAI
6
  from langchain_core.pydantic_v1 import BaseModel, Field
7
  from langgraph.graph import MessageGraph, END
8
  from langgraph.checkpoint.sqlite import SqliteSaver
9
- from langchain_core.messages import HumanMessage, AIMessage
10
  from typing import List
11
  import os
12
  import uuid
@@ -40,8 +40,8 @@ class PromptInstructions(BaseModel):
40
  """Instructions on how to prompt the LLM."""
41
  job: str
42
  company: str
43
- tools: List[str]
44
- skills: List[str]
45
 
46
  llm_with_tool = llm.bind_tools([PromptInstructions])
47
 
@@ -127,7 +127,7 @@ with container:
127
  submit_button = st.form_submit_button(label='Send')
128
 
129
  if submit_button and user_input:
130
- for output in graph.stream([HumanMessage(content=user_input), AIMessage(content=st.session_state['past'])], config=config):
131
  if "__end__" in output:
132
  continue
133
  # stream() yields dictionaries with output keyed by node name
 
6
  from langchain_core.pydantic_v1 import BaseModel, Field
7
  from langgraph.graph import MessageGraph, END
8
  from langgraph.checkpoint.sqlite import SqliteSaver
9
+ from langchain_core.messages import HumanMessage
10
  from typing import List
11
  import os
12
  import uuid
 
40
  """Instructions on how to prompt the LLM."""
41
  job: str
42
  company: str
43
+ technologies: List[str]
44
+ hobies: List[str]
45
 
46
  llm_with_tool = llm.bind_tools([PromptInstructions])
47
 
 
127
  submit_button = st.form_submit_button(label='Send')
128
 
129
  if submit_button and user_input:
130
+ for output in graph.stream([HumanMessage(content=user_input)], config=config):
131
  if "__end__" in output:
132
  continue
133
  # stream() yields dictionaries with output keyed by node name