Skip to content

Commit 1e18b25

Browse files
committed
CR CR1
1 parent 092ca12 commit 1e18b25

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

  • agents
    • crewai/websearch_agent/playground
    • langgraph
      • agentic_rag/playground
      • react_agent/playground
      • react_with_database_memory/playground
    • llamaindex/websearch_agent/playground
    • vanilla_python/openai_responses_agent/playground

agents/crewai/websearch_agent/playground/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
jsonify,
2626
render_template,
2727
request,
28-
send_file,
28+
send_from_directory,
2929
stream_with_context,
3030
)
3131

@@ -40,7 +40,7 @@
4040
@app.route("/images/<path:filename>")
4141
def serve_image(filename):
4242
"""Serve images from the project-level images directory."""
43-
return send_file(IMAGES_DIR / filename)
43+
return send_from_directory(IMAGES_DIR, filename)
4444

4545

4646
AGENT_URL = getenv("AGENT_URL", "http://localhost:8000")

agents/langgraph/agentic_rag/playground/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
jsonify,
2626
render_template,
2727
request,
28-
send_file,
28+
send_from_directory,
2929
stream_with_context,
3030
)
3131

@@ -40,7 +40,7 @@
4040
@app.route("/images/<path:filename>")
4141
def serve_image(filename):
4242
"""Serve images from the project-level images directory."""
43-
return send_file(IMAGES_DIR / filename)
43+
return send_from_directory(IMAGES_DIR, filename)
4444

4545

4646
AGENT_URL = getenv("AGENT_URL", "http://localhost:8000")

agents/langgraph/react_agent/playground/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
jsonify,
2626
render_template,
2727
request,
28-
send_file,
28+
send_from_directory,
2929
stream_with_context,
3030
)
3131

@@ -40,7 +40,7 @@
4040
@app.route("/images/<path:filename>")
4141
def serve_image(filename):
4242
"""Serve images from the project-level images directory."""
43-
return send_file(IMAGES_DIR / filename)
43+
return send_from_directory(IMAGES_DIR, filename)
4444

4545

4646
AGENT_URL = getenv("AGENT_URL", "http://localhost:8000")

agents/langgraph/react_with_database_memory/playground/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
jsonify,
2727
render_template,
2828
request,
29-
send_file,
29+
send_from_directory,
3030
stream_with_context,
3131
)
3232

@@ -41,7 +41,7 @@
4141
@app.route("/images/<path:filename>")
4242
def serve_image(filename):
4343
"""Serve images from the project-level images directory."""
44-
return send_file(IMAGES_DIR / filename)
44+
return send_from_directory(IMAGES_DIR, filename)
4545

4646

4747
AGENT_URL = getenv("AGENT_URL", "http://localhost:8000")

agents/llamaindex/websearch_agent/playground/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
jsonify,
2626
render_template,
2727
request,
28-
send_file,
28+
send_from_directory,
2929
stream_with_context,
3030
)
3131

@@ -40,7 +40,7 @@
4040
@app.route("/images/<path:filename>")
4141
def serve_image(filename):
4242
"""Serve images from the project-level images directory."""
43-
return send_file(IMAGES_DIR / filename)
43+
return send_from_directory(IMAGES_DIR, filename)
4444

4545

4646
AGENT_URL = getenv("AGENT_URL", "http://localhost:8000")

agents/vanilla_python/openai_responses_agent/playground/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
jsonify,
2626
render_template,
2727
request,
28-
send_file,
28+
send_from_directory,
2929
stream_with_context,
3030
)
3131

@@ -40,7 +40,7 @@
4040
@app.route("/images/<path:filename>")
4141
def serve_image(filename):
4242
"""Serve images from the project-level images directory."""
43-
return send_file(IMAGES_DIR / filename)
43+
return send_from_directory(IMAGES_DIR, filename)
4444

4545

4646
AGENT_URL = getenv("AGENT_URL", "http://localhost:8000")

0 commit comments

Comments
 (0)