Spaces:
Runtime error
Runtime error
Commit
·
261ae2d
1
Parent(s):
cdc62bb
stuff
Browse files
app.log
CHANGED
@@ -50429,3 +50429,57 @@ Traceback (most recent call last):
|
|
50429 |
File "/usr/local/lib/python3.10/contextlib.py", line 249, in __aexit__
|
50430 |
raise RuntimeError("generator didn't stop after athrow()")
|
50431 |
RuntimeError: generator didn't stop after athrow()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50429 |
File "/usr/local/lib/python3.10/contextlib.py", line 249, in __aexit__
|
50430 |
raise RuntimeError("generator didn't stop after athrow()")
|
50431 |
RuntimeError: generator didn't stop after athrow()
|
50432 |
+
2025-06-06 19:28:33:__main__:INFO: Starting the interface
|
50433 |
+
2025-06-06 19:28:39:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
50434 |
+
2025-06-06 19:28:47:__main__:INFO: Prompt: You are a helpful assistant.
|
50435 |
+
2025-06-06 19:30:20:__main__:INFO: Prompt: You are a helpful assistant.
|
50436 |
+
2025-06-06 19:30:20:__main__:ERROR: Exception occurred
|
50437 |
+
Traceback (most recent call last):
|
50438 |
+
File "/home/user/app/app.py", line 72, in chat_fn
|
50439 |
+
ToolMessage(
|
50440 |
+
NameError: name 'ToolMessage' is not defined
|
50441 |
+
2025-06-06 19:32:28:__main__:INFO: Starting the interface
|
50442 |
+
2025-06-06 19:32:32:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
50443 |
+
2025-06-06 19:32:52:__main__:INFO: Prompt: You are a helpful assistant.
|
50444 |
+
2025-06-06 19:32:52:__main__:ERROR: Exception occurred
|
50445 |
+
Traceback (most recent call last):
|
50446 |
+
File "/home/user/app/app.py", line 97, in chat_fn
|
50447 |
+
async for stream_mode, chunk in graph.astream(
|
50448 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/__init__.py", line 2655, in astream
|
50449 |
+
async for _ in runner.atick(
|
50450 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/runner.py", line 400, in atick
|
50451 |
+
_panic_or_proceed(
|
50452 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/runner.py", line 509, in _panic_or_proceed
|
50453 |
+
raise exc
|
50454 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/retry.py", line 136, in arun_with_retry
|
50455 |
+
return await task.proc.ainvoke(task.input, config)
|
50456 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/utils/runnable.py", line 676, in ainvoke
|
50457 |
+
input = await step.ainvoke(input, config, **kwargs)
|
50458 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/utils/runnable.py", line 440, in ainvoke
|
50459 |
+
ret = await self.afunc(*args, **kwargs)
|
50460 |
+
File "/home/user/app/graph.py", line 145, in guidance_node
|
50461 |
+
elif isinstance(message, SystemMessage):
|
50462 |
+
NameError: name 'SystemMessage' is not defined
|
50463 |
+
2025-06-06 19:33:33:__main__:INFO: Starting the interface
|
50464 |
+
2025-06-06 19:33:38:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
50465 |
+
2025-06-06 19:33:44:__main__:INFO: Prompt: You are a helpful assistant.
|
50466 |
+
2025-06-06 19:33:44:__main__:ERROR: Exception occurred
|
50467 |
+
Traceback (most recent call last):
|
50468 |
+
File "/home/user/app/app.py", line 97, in chat_fn
|
50469 |
+
async for stream_mode, chunk in graph.astream(
|
50470 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/__init__.py", line 2655, in astream
|
50471 |
+
async for _ in runner.atick(
|
50472 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/runner.py", line 400, in atick
|
50473 |
+
_panic_or_proceed(
|
50474 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/runner.py", line 509, in _panic_or_proceed
|
50475 |
+
raise exc
|
50476 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/retry.py", line 136, in arun_with_retry
|
50477 |
+
return await task.proc.ainvoke(task.input, config)
|
50478 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/utils/runnable.py", line 676, in ainvoke
|
50479 |
+
input = await step.ainvoke(input, config, **kwargs)
|
50480 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/utils/runnable.py", line 440, in ainvoke
|
50481 |
+
ret = await self.afunc(*args, **kwargs)
|
50482 |
+
File "/home/user/app/graph.py", line 145, in guidance_node
|
50483 |
+
elif isinstance(message, SystemMessage):
|
50484 |
+
NameError: name 'SystemMessage' is not defined
|
50485 |
+
2025-06-06 19:34:07:__main__:INFO: Prompt: You are a helpful assistant.
|
app.py
CHANGED
@@ -7,7 +7,7 @@ import json
|
|
7 |
|
8 |
import gradio as gr
|
9 |
from dotenv import load_dotenv
|
10 |
-
from langchain_core.messages import HumanMessage
|
11 |
from langgraph.types import RunnableConfig
|
12 |
from pydantic import BaseModel
|
13 |
|
|
|
7 |
|
8 |
import gradio as gr
|
9 |
from dotenv import load_dotenv
|
10 |
+
from langchain_core.messages import SystemMessage, HumanMessage, AIMessage, ToolMessage
|
11 |
from langgraph.types import RunnableConfig
|
12 |
from pydantic import BaseModel
|
13 |
|
graph.png
CHANGED
![]() |
![]() |