Spaces:
Running
on
Zero
Running
on
Zero
jedick
commited on
Commit
·
e00a4f0
1
Parent(s):
3575a77
Update examples
Browse files
app.py
CHANGED
|
@@ -413,8 +413,8 @@ with gr.Blocks(
|
|
| 413 |
"""Get example questions based on compute mode"""
|
| 414 |
questions = [
|
| 415 |
# "What is today's date?",
|
| 416 |
-
"Summarize emails from the last two months
|
| 417 |
-
"Show me code examples using plotmath",
|
| 418 |
"When was has.HLC mentioned?",
|
| 419 |
"Who reported installation problems in 2023-2024?",
|
| 420 |
]
|
|
@@ -430,7 +430,7 @@ with gr.Blocks(
|
|
| 430 |
"""Get multi-tool example questions based on compute mode"""
|
| 431 |
questions = [
|
| 432 |
"Differences between lapply and for loops /think",
|
| 433 |
-
"
|
| 434 |
]
|
| 435 |
|
| 436 |
if compute_mode == "remote":
|
|
|
|
| 413 |
"""Get example questions based on compute mode"""
|
| 414 |
questions = [
|
| 415 |
# "What is today's date?",
|
| 416 |
+
"Summarize emails from the last two months",
|
| 417 |
+
"Show me code examples using plotmath /no_think",
|
| 418 |
"When was has.HLC mentioned?",
|
| 419 |
"Who reported installation problems in 2023-2024?",
|
| 420 |
]
|
|
|
|
| 430 |
"""Get multi-tool example questions based on compute mode"""
|
| 431 |
questions = [
|
| 432 |
"Differences between lapply and for loops /think",
|
| 433 |
+
"Discuss pipe operator usage in 2022, 2023, and 2024",
|
| 434 |
]
|
| 435 |
|
| 436 |
if compute_mode == "remote":
|
graph.py
CHANGED
|
@@ -122,8 +122,10 @@ def BuildGraph(
|
|
| 122 |
# Add simple in-memory checkpointer
|
| 123 |
from langgraph.checkpoint.memory import MemorySaver
|
| 124 |
memory = MemorySaver()
|
| 125 |
-
# Compile app
|
| 126 |
app = graph.compile(checkpointer=memory)
|
|
|
|
|
|
|
| 127 |
#app.get_graph().draw_mermaid_png(output_file_path="graph.png")
|
| 128 |
|
| 129 |
# Run app
|
|
|
|
| 122 |
# Add simple in-memory checkpointer
|
| 123 |
from langgraph.checkpoint.memory import MemorySaver
|
| 124 |
memory = MemorySaver()
|
| 125 |
+
# Compile app
|
| 126 |
app = graph.compile(checkpointer=memory)
|
| 127 |
+
# Draw graph
|
| 128 |
+
# nb. change orientation (TD to LR) in langchain_core/runnables/graph_mermaid.py
|
| 129 |
#app.get_graph().draw_mermaid_png(output_file_path="graph.png")
|
| 130 |
|
| 131 |
# Run app
|