Commit
·
229cf57
1
Parent(s):
afecd9f
this is it
Browse files
app.log
CHANGED
@@ -51253,3 +51253,37 @@ For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/er
|
|
51253 |
2025-06-07 09:13:46:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51254 |
2025-06-07 09:14:52:__main__:INFO: Starting the interface
|
51255 |
2025-06-07 09:15:03:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51253 |
2025-06-07 09:13:46:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51254 |
2025-06-07 09:14:52:__main__:INFO: Starting the interface
|
51255 |
2025-06-07 09:15:03:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51256 |
+
2025-06-07 09:28:52:__main__:INFO: Starting the interface
|
51257 |
+
2025-06-07 09:29:10:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51258 |
+
2025-06-07 09:30:12:__main__:INFO: Starting the interface
|
51259 |
+
2025-06-07 09:30:33:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51260 |
+
2025-06-07 09:31:49:__main__:INFO: Starting the interface
|
51261 |
+
2025-06-07 09:31:56:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51262 |
+
2025-06-07 09:32:27:__main__:INFO: Starting the interface
|
51263 |
+
2025-06-07 09:32:34:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51264 |
+
2025-06-07 09:33:28:__main__:INFO: Starting the interface
|
51265 |
+
2025-06-07 09:33:53:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51266 |
+
2025-06-07 09:34:19:__main__:INFO: Starting the interface
|
51267 |
+
2025-06-07 09:34:26:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51268 |
+
2025-06-07 09:35:45:__main__:INFO: Starting the interface
|
51269 |
+
2025-06-07 09:35:50:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51270 |
+
2025-06-07 09:35:57:__main__:INFO: Prompt: You are a helpful assistant.
|
51271 |
+
2025-06-07 09:35:58:__main__:ERROR: Exception occurred
|
51272 |
+
Traceback (most recent call last):
|
51273 |
+
File "/home/user/app/app.py", line 99, in chat_fn
|
51274 |
+
async for stream_mode, chunk in graph.astream(
|
51275 |
+
File "/usr/local/lib/python3.10/site-packages/langgraph/pregel/__init__.py", line 2677, in astream
|
51276 |
+
raise GraphRecursionError(msg)
|
51277 |
+
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.
|
51278 |
+
For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/GRAPH_RECURSION_LIMIT
|
51279 |
+
2025-06-07 09:36:17:__main__:INFO: Prompt: You are a helpful assistant.
|
51280 |
+
2025-06-07 09:36:48:__main__:INFO: Starting the interface
|
51281 |
+
2025-06-07 09:36:54:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51282 |
+
2025-06-07 09:37:25:__main__:INFO: Starting the interface
|
51283 |
+
2025-06-07 09:37:31:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51284 |
+
2025-06-07 09:37:57:__main__:INFO: Starting the interface
|
51285 |
+
2025-06-07 09:38:03:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51286 |
+
2025-06-07 09:38:23:__main__:INFO: Starting the interface
|
51287 |
+
2025-06-07 09:38:30:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
51288 |
+
2025-06-07 09:38:59:__main__:INFO: Starting the interface
|
51289 |
+
2025-06-07 09:39:05:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
app.py
CHANGED
@@ -6,7 +6,6 @@ from uuid import uuid4, UUID
|
|
6 |
import json
|
7 |
|
8 |
import gradio as gr
|
9 |
-
from gradio import js
|
10 |
from dotenv import load_dotenv
|
11 |
from langchain_core.messages import SystemMessage, HumanMessage, AIMessage, ToolMessage
|
12 |
from langgraph.types import RunnableConfig
|
@@ -368,7 +367,7 @@ footer {visibility: hidden}
|
|
368 |
}
|
369 |
|
370 |
#main-app {
|
371 |
-
height:
|
372 |
overflow-y: auto; /* optional if you want it scrollable */
|
373 |
}
|
374 |
|
@@ -415,21 +414,6 @@ function toggleSidebarVisibility() {
|
|
415 |
}
|
416 |
"""
|
417 |
|
418 |
-
REMOVE_MIN_HEIGHT_JS = """
|
419 |
-
function removeMinHeight() {
|
420 |
-
const sidebarParent = document.querySelector('.wrap.sidebar-parent');
|
421 |
-
if (sidebarParent) {
|
422 |
-
sidebarParent.style.minHeight = 'auto';
|
423 |
-
console.log('Min-height removed from sidebar-parent');
|
424 |
-
}
|
425 |
-
}
|
426 |
-
|
427 |
-
// Run on page load
|
428 |
-
document.addEventListener('DOMContentLoaded', removeMinHeight);
|
429 |
-
// Also run after a short delay to catch dynamically loaded content
|
430 |
-
setTimeout(removeMinHeight, 1000);
|
431 |
-
"""
|
432 |
-
|
433 |
if __name__ == "__main__":
|
434 |
logger.info("Starting the interface")
|
435 |
with gr.Blocks(title="Langgraph Template", fill_height=True, css=CSS, elem_id="main-app") as app:
|
@@ -771,15 +755,6 @@ if __name__ == "__main__":
|
|
771 |
trigger_mode="always_last"
|
772 |
)
|
773 |
|
774 |
-
def remove_min_height():
|
775 |
-
return None
|
776 |
-
|
777 |
-
app.load(
|
778 |
-
fn=remove_min_height,
|
779 |
-
inputs=None,
|
780 |
-
outputs=None
|
781 |
-
).success(lambda: None, js=REMOVE_MIN_HEIGHT_JS)
|
782 |
-
|
783 |
@app.load( # Or demo.load
|
784 |
inputs=[
|
785 |
is_new_user_for_greeting,
|
|
|
6 |
import json
|
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
|
|
|
367 |
}
|
368 |
|
369 |
#main-app {
|
370 |
+
height: 6000px; /* or 800px, or 100% */
|
371 |
overflow-y: auto; /* optional if you want it scrollable */
|
372 |
}
|
373 |
|
|
|
414 |
}
|
415 |
"""
|
416 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
if __name__ == "__main__":
|
418 |
logger.info("Starting the interface")
|
419 |
with gr.Blocks(title="Langgraph Template", fill_height=True, css=CSS, elem_id="main-app") as app:
|
|
|
755 |
trigger_mode="always_last"
|
756 |
)
|
757 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
758 |
@app.load( # Or demo.load
|
759 |
inputs=[
|
760 |
is_new_user_for_greeting,
|