Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
-
from agent import agent_graph
|
7 |
-
from langchain_core.messages import HumanMessage
|
8 |
|
9 |
# (Keep Constants as is)
|
10 |
# --- Constants ---
|
@@ -23,7 +23,7 @@ class BasicAgent:
|
|
23 |
def __call__(self, question: str) -> str:
|
24 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
25 |
# Create conversation history with system prompt
|
26 |
-
messages = [SystemMessage(content=
|
27 |
HumanMessage(content=question)]
|
28 |
|
29 |
# Run the graph
|
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
+
from agent import agent_graph, system_prompt
|
7 |
+
from langchain_core.messages import SystemMessage, HumanMessage
|
8 |
|
9 |
# (Keep Constants as is)
|
10 |
# --- Constants ---
|
|
|
23 |
def __call__(self, question: str) -> str:
|
24 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
25 |
# Create conversation history with system prompt
|
26 |
+
messages = [SystemMessage(content=system_prompt),
|
27 |
HumanMessage(content=question)]
|
28 |
|
29 |
# Run the graph
|