enable real example
Browse files
app.py
CHANGED
@@ -23,11 +23,7 @@ with open("styling.css", "r") as f:
|
|
23 |
|
24 |
# Define helper functions
|
25 |
def run_agent_with_state(user_prompt, history, invariant_api_key, state, is_example=False):
|
26 |
-
|
27 |
-
gradio_messages = [
|
28 |
-
{"role": "user", "content": "Could you please deliver Xbox to John?"},
|
29 |
-
{"role": "assistant", "content": "I'm sorry, but I can't deliver presents. I'm just a chatbot."},
|
30 |
-
]
|
31 |
|
32 |
if not invariant_api_key.startswith("inv"):
|
33 |
return gradio_messages, "Please enter a valid Invariant API key to get the score!", state
|
|
|
23 |
|
24 |
# Define helper functions
|
25 |
def run_agent_with_state(user_prompt, history, invariant_api_key, state, is_example=False):
|
26 |
+
messages, gradio_messages = agent.run_santa_agent(user_prompt)
|
|
|
|
|
|
|
|
|
27 |
|
28 |
if not invariant_api_key.startswith("inv"):
|
29 |
return gradio_messages, "Please enter a valid Invariant API key to get the score!", state
|