Spaces:
Paused
Paused
Download scratch/debug_prompt.py from 3SCError404/miracle: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/spaces/3SCError404/miracle/resolve/main/scratch/debug_prompt.py
- Command line
-
hf download hf://spaces/3SCError404/miracle/scratch/debug_prompt.py
-
curl -L -o debug_prompt.py https://huggingface.co/spaces/3SCError404/miracle/resolve/main/scratch/debug_prompt.py
655 Bytes
| import sys | |
| import os | |
| # Set output encoding to UTF-8 | |
| if sys.platform == "win32": | |
| import io | |
| sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') | |
| # Add the project root to sys.path | |
| sys.path.append(os.getcwd()) | |
| try: | |
| from agents.prompts import get_prompt | |
| print("--- RESPONDER PROMPT ---") | |
| prompt = get_prompt("responder") | |
| print(prompt) | |
| print("--- END ---") | |
| # Check for input_pattern specifically | |
| if "input_pattern" in prompt: | |
| print("FOUND 'input_pattern' in prompt!") | |
| else: | |
| print("Could NOT find 'input_pattern' in prompt.") | |
| except Exception as e: | |
| print(f"Error: {e}") | |