File tree Expand file tree Collapse file tree
crewai/websearch_agent/playground
react_with_database_memory/playground
llamaindex/websearch_agent/playground
vanilla_python/openai_responses_agent/playground Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 jsonify ,
2626 render_template ,
2727 request ,
28- send_file ,
28+ send_from_directory ,
2929 stream_with_context ,
3030)
3131
4040@app .route ("/images/<path:filename>" )
4141def 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
4646AGENT_URL = getenv ("AGENT_URL" , "http://localhost:8000" )
Original file line number Diff line number Diff line change 2525 jsonify ,
2626 render_template ,
2727 request ,
28- send_file ,
28+ send_from_directory ,
2929 stream_with_context ,
3030)
3131
4040@app .route ("/images/<path:filename>" )
4141def 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
4646AGENT_URL = getenv ("AGENT_URL" , "http://localhost:8000" )
Original file line number Diff line number Diff line change 2525 jsonify ,
2626 render_template ,
2727 request ,
28- send_file ,
28+ send_from_directory ,
2929 stream_with_context ,
3030)
3131
4040@app .route ("/images/<path:filename>" )
4141def 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
4646AGENT_URL = getenv ("AGENT_URL" , "http://localhost:8000" )
Original file line number Diff line number Diff line change 2626 jsonify ,
2727 render_template ,
2828 request ,
29- send_file ,
29+ send_from_directory ,
3030 stream_with_context ,
3131)
3232
4141@app .route ("/images/<path:filename>" )
4242def 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
4747AGENT_URL = getenv ("AGENT_URL" , "http://localhost:8000" )
Original file line number Diff line number Diff line change 2525 jsonify ,
2626 render_template ,
2727 request ,
28- send_file ,
28+ send_from_directory ,
2929 stream_with_context ,
3030)
3131
4040@app .route ("/images/<path:filename>" )
4141def 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
4646AGENT_URL = getenv ("AGENT_URL" , "http://localhost:8000" )
Original file line number Diff line number Diff line change 2525 jsonify ,
2626 render_template ,
2727 request ,
28- send_file ,
28+ send_from_directory ,
2929 stream_with_context ,
3030)
3131
4040@app .route ("/images/<path:filename>" )
4141def 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
4646AGENT_URL = getenv ("AGENT_URL" , "http://localhost:8000" )
You can’t perform that action at this time.
0 commit comments