MCPcopy Create free account
hub / github.com/MeiGen-AI/PosterCraft / __init__

Method __init__

demo_gradio.py:109–112  ·  view source on GitHub ↗
(self, pipeline_path, qwen_model_path, custom_weights_path, device)

Source from the content-addressed store, hash-verified

107# --- Poster Generator Class ---
108class PosterGenerator:
109 def __init__(self, pipeline_path, qwen_model_path, custom_weights_path, device):
110 self.device = device
111 self.qwen_agent = self._load_qwen_agent(qwen_model_path)
112 self.pipeline = self._load_flux_pipeline(pipeline_path, custom_weights_path)
113
114 def _load_qwen_agent(self, qwen_model_path):
115 if not qwen_model_path:

Callers

nothing calls this directly

Calls 2

_load_qwen_agentMethod · 0.95
_load_flux_pipelineMethod · 0.95

Tested by

no test coverage detected