Davit6174 commited on
Commit
edc75dd
·
verified ·
1 Parent(s): 920e7a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -64,7 +64,7 @@ class LangGraphAgent:
64
  def __init__(self):
65
  self.model = ZephyrAPI()
66
 
67
- builder = StateGraph()
68
 
69
  def call_model(state):
70
  messages = state.get("messages", [])
@@ -255,6 +255,7 @@ with gr.Blocks() as demo:
255
  def test_agent_response(question: str) -> str:
256
  # agent = BasicAgent()
257
  agent = LangGraphAgent()
 
258
  return agent(question)
259
 
260
  test_button.click(fn=test_agent_response, inputs=question_input, outputs=answer_output)
 
64
  def __init__(self):
65
  self.model = ZephyrAPI()
66
 
67
+ builder = StateGraph(dict)
68
 
69
  def call_model(state):
70
  messages = state.get("messages", [])
 
255
  def test_agent_response(question: str) -> str:
256
  # agent = BasicAgent()
257
  agent = LangGraphAgent()
258
+ print(agent("What's the capital of France?"))
259
  return agent(question)
260
 
261
  test_button.click(fn=test_agent_response, inputs=question_input, outputs=answer_output)