Spaces:
Paused
Paused
Download utils/debug.py from mickkhaw/ragalicious-app: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/spaces/mickkhaw/ragalicious-app/resolve/main/utils/debug.py
- Command line
-
hf download hf://spaces/mickkhaw/ragalicious-app/utils/debug.py
-
curl -L -o debug.py https://huggingface.co/spaces/mickkhaw/ragalicious-app/resolve/main/utils/debug.py
403 Bytes
| def retriever_output_logger(documents): | |
| print("returning total results count: ", len(documents)) | |
| for doc in documents: | |
| print(f"""*** {doc.metadata['title']} | |
| > Prep Time: {doc.metadata['time']} | |
| > Occasion: {doc.metadata['occasion']} | |
| > Cuisine: {doc.metadata['cuisine']} | |
| > Ingredients: {doc.metadata['ingredients']}""") | |
| return documents | |