Spaces:
Runtime error
Runtime error
Download mcp_tools/workflow_mapper.py from abhidgp1978/flowforge-ai: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/spaces/abhidgp1978/flowforge-ai/resolve/main/mcp_tools/workflow_mapper.py
- Command line
-
hf download hf://spaces/abhidgp1978/flowforge-ai/mcp_tools/workflow_mapper.py
-
curl -L -o workflow_mapper.py https://huggingface.co/spaces/abhidgp1978/flowforge-ai/resolve/main/mcp_tools/workflow_mapper.py
680 Bytes
| from mcp_tools import register_tool | |
| from transformers import pipeline | |
| def workflow_mapper(architecture: str): | |
| gen = pipeline("text2text-generation", model="google/flan-t5-base") | |
| prompt = ( | |
| "You are a software project manager.\n" | |
| "Based on this architecture, outline a detailed development workflow " | |
| "including tasks, responsibilities, and milestones.\n\n" | |
| f"{architecture}\n\n" | |
| "Format as:\n1. Phase\n - Task\n - Deliverable\n" | |
| ) | |
| output = gen( | |
| prompt, max_new_tokens=350, temperature=0.7, repetition_penalty=1.8, top_p=0.9 | |
| )[0]["generated_text"] | |
| return output.strip() | |