MCPcopy Create free account
hub / github.com/Speakn0w/RealChart2Code / create_user_prompt

Function create_user_prompt

RealChart2Code_eval/evaluate_task2.py:225–235  ·  view source on GitHub ↗
(category: str, data_info: Dict[str, str])

Source from the content-addressed store, hash-verified

223
224
225def create_user_prompt(category: str, data_info: Dict[str, str]) -> str:
226
227 prompt = f"""# Task
228Category: {category}
229# Data
230"""
231
232 for filename, data_content in data_info.items():
233 prompt += f"## {filename}\n{data_content}\n\n"
234
235 return prompt
236
237
238def create_generation_request(category: str, data_info: Dict[str, str], image_path: str,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected