wishwakankanamg commited on
Commit
a9bcab4
·
1 Parent(s): ea6600d

going to fix loading issue

Browse files
Files changed (4) hide show
  1. __pycache__/graph.cpython-313.pyc +0 -0
  2. app.log +90 -0
  3. app.py +2 -0
  4. graph.py +3 -1
__pycache__/graph.cpython-313.pyc CHANGED
Binary files a/__pycache__/graph.cpython-313.pyc and b/__pycache__/graph.cpython-313.pyc differ
 
app.log CHANGED
@@ -53336,3 +53336,93 @@ For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/er
53336
  2025-06-09 17:26:45:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53337
  2025-06-09 17:27:38:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53338
  2025-06-09 17:28:06:__main__:INFO: Starting the interface
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53336
  2025-06-09 17:26:45:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53337
  2025-06-09 17:27:38:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53338
  2025-06-09 17:28:06:__main__:INFO: Starting the interface
53339
+ 2025-06-09 18:55:20:__main__:INFO: Starting the interface
53340
+ 2025-06-09 18:56:09:__main__:INFO: Starting the interface
53341
+ 2025-06-09 18:56:14:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53342
+ 2025-06-09 18:56:32:__main__:INFO: Prompt: You are a helpful assistant.
53343
+ 2025-06-09 18:57:00:__main__:INFO: Prompt: You are a helpful assistant.
53344
+ 2025-06-09 18:57:02:__main__:ERROR: Exception occurred
53345
+ Traceback (most recent call last):
53346
+ File "C:\myworkspace\huggingface_agents\DIY_agent\dev\DIY_assistant\graph.py", line 784, in generate_3d_node
53347
+ async with httpx.AsyncClient(timeout=120.0) as client: # Timeout set to 120 seconds
53348
+ ^^^^^
53349
+ NameError: name 'httpx' is not defined
53350
+
53351
+ During handling of the above exception, another exception occurred:
53352
+
53353
+ Traceback (most recent call last):
53354
+ File "C:\myworkspace\huggingface_agents\DIY_agent\dev\DIY_assistant\app.py", line 101, in chat_fn
53355
+ async for stream_mode, chunk in graph.astream(
53356
+ ...<56 lines>...
53357
+ yield output, gr.skip(), gr.skip()
53358
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\pregel\__init__.py", line 2655, in astream
53359
+ async for _ in runner.atick(
53360
+ ...<7 lines>...
53361
+ yield o
53362
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\pregel\runner.py", line 400, in atick
53363
+ _panic_or_proceed(
53364
+ ~~~~~~~~~~~~~~~~~^
53365
+ futures.done.union(f for f, t in futures.items() if t is not None),
53366
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53367
+ timeout_exc_cls=asyncio.TimeoutError,
53368
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53369
+ panic=reraise,
53370
+ ^^^^^^^^^^^^^^
53371
+ )
53372
+ ^
53373
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\pregel\runner.py", line 509, in _panic_or_proceed
53374
+ raise exc
53375
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\pregel\retry.py", line 136, in arun_with_retry
53376
+ return await task.proc.ainvoke(task.input, config)
53377
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53378
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\utils\runnable.py", line 672, in ainvoke
53379
+ input = await asyncio.create_task(
53380
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
53381
+ step.ainvoke(input, config, **kwargs), context=context
53382
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53383
+ )
53384
+ ^
53385
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\utils\runnable.py", line 440, in ainvoke
53386
+ ret = await self.afunc(*args, **kwargs)
53387
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53388
+ File "C:\myworkspace\huggingface_agents\DIY_agent\dev\DIY_assistant\graph.py", line 812, in generate_3d_node
53389
+ except httpx.HTTPStatusError as e:
53390
+ ^^^^^
53391
+ NameError: name 'httpx' is not defined
53392
+ During task with name 'generate_3d_node' and id 'eee32888-466c-a8c1-890a-1c65924e5ea4'
53393
+ 2025-06-09 18:57:59:__main__:INFO: Starting the interface
53394
+ 2025-06-09 18:58:05:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53395
+ 2025-06-09 18:58:11:__main__:INFO: Prompt: You are a helpful assistant.
53396
+ 2025-06-09 18:58:33:__main__:INFO: Prompt: You are a helpful assistant.
53397
+ 2025-06-09 18:58:56:__main__:ERROR: Exception occurred
53398
+ Traceback (most recent call last):
53399
+ File "C:\myworkspace\huggingface_agents\DIY_agent\dev\DIY_assistant\app.py", line 101, in chat_fn
53400
+ async for stream_mode, chunk in graph.astream(
53401
+ ...<56 lines>...
53402
+ yield output, gr.skip(), gr.skip()
53403
+ File "C:\myworkspace\huggingface_agents\mcp-hackthon\dev\DIY_assistant\env\Lib\site-packages\langgraph\pregel\__init__.py", line 2677, in astream
53404
+ raise GraphRecursionError(msg)
53405
+ langgraph.errors.GraphRecursionError: Recursion limit of 20 reached without hitting a stop condition. You can increase the limit by setting the `recursion_limit` config key.
53406
+ For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT
53407
+ 2025-06-09 18:59:51:__main__:INFO: Starting the interface
53408
+ 2025-06-09 18:59:58:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53409
+ 2025-06-09 19:01:51:__main__:INFO: Prompt: You are a helpful assistant.
53410
+ 2025-06-09 19:02:04:__main__:INFO: Prompt: You are a helpful assistant.
53411
+ 2025-06-09 19:02:34:__main__:INFO: Prompt: You are a helpful assistant.
53412
+ 2025-06-09 19:02:47:__main__:INFO: Prompt: You are a helpful assistant.
53413
+ 2025-06-09 19:07:43:__main__:INFO: Starting the interface
53414
+ 2025-06-09 19:07:47:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53415
+ 2025-06-09 19:21:49:__main__:INFO: Starting the interface
53416
+ 2025-06-09 19:22:46:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53417
+ 2025-06-09 19:25:03:__main__:INFO: Starting the interface
53418
+ 2025-06-09 19:25:10:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53419
+ 2025-06-09 19:25:18:__main__:INFO: Prompt: You are a helpful assistant.
53420
+ 2025-06-09 19:32:41:__main__:INFO: Starting the interface
53421
+ 2025-06-09 19:33:02:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53422
+ 2025-06-09 19:33:05:__main__:INFO: Prompt: You are a helpful assistant.
53423
+ 2025-06-09 19:33:33:__main__:INFO: Prompt: You are a helpful assistant.
53424
+ 2025-06-09 19:33:55:__main__:INFO: Prompt: You are a helpful assistant.
53425
+ 2025-06-09 19:34:11:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53426
+ 2025-06-09 19:34:18:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
53427
+ 2025-06-09 19:35:04:__main__:INFO: Starting the interface
53428
+ 2025-06-09 19:35:08:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
app.py CHANGED
@@ -10,6 +10,8 @@ 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
 
14
  load_dotenv()
15
 
 
10
  from langchain_core.messages import SystemMessage, HumanMessage, AIMessage, ToolMessage
11
  from langgraph.types import RunnableConfig
12
  from pydantic import BaseModel
13
+ from pathlib import Path
14
+
15
 
16
  load_dotenv()
17
 
graph.py CHANGED
@@ -5,6 +5,7 @@ import os
5
  import uuid
6
  import aiohttp
7
  import json
 
8
 
9
  from typing import Annotated
10
  from typing import TypedDict, List, Optional, Literal
@@ -279,7 +280,8 @@ def guidance_routing(state: GraphProcessingState) -> str:
279
  return "generate_3d_node"
280
  # return "prompt_planning_node"
281
  elif next_stage == "drawing":
282
- return "generate_3d_node"
 
283
  elif next_stage == "product_searching":
284
  print('\n may day may day may day may day may day')
285
  # return "drawing_node"
 
5
  import uuid
6
  import aiohttp
7
  import json
8
+ import httpx
9
 
10
  from typing import Annotated
11
  from typing import TypedDict, List, Optional, Literal
 
280
  return "generate_3d_node"
281
  # return "prompt_planning_node"
282
  elif next_stage == "drawing":
283
+ print('\n may day may day may day may day may day')
284
+ # return "generate_3d_node"
285
  elif next_stage == "product_searching":
286
  print('\n may day may day may day may day may day')
287
  # return "drawing_node"