BladeSzaSza commited on
Commit
4cfc1e9
·
2 Parent(s): 9910061 16aa645

Merge branch 'main' of https://huggingface.co/spaces/BladeSzaSza/digiPal

Browse files
Files changed (1) hide show
  1. core/ai_pipeline.py +11 -1
core/ai_pipeline.py CHANGED
@@ -249,7 +249,17 @@ class MonsterGenerationPipeline:
249
  print(f"💥 Pipeline error: {e}")
250
  generation_log['error'] = str(e)
251
  generation_log['errors'].append(f"Pipeline error: {str(e)}")
252
- return self.fallback_generation(description or "digital monster", generation_log)
 
 
 
 
 
 
 
 
 
 
253
 
254
  def _create_image_prompt(self, base_description: str, traits: Dict) -> str:
255
  """Create enhanced prompt for image generation"""
 
249
  print(f"💥 Pipeline error: {e}")
250
  generation_log['error'] = str(e)
251
  generation_log['errors'].append(f"Pipeline error: {str(e)}")
252
+ # return self.fallback_generation(description or "digital monster", generation_log)
253
+ return {
254
+ 'description': description,
255
+ 'traits': monster_traits,
256
+ 'dialogue': monster_dialogue,
257
+ 'image': monster_image,
258
+ 'model_3d': model_3d_path,
259
+ 'download_files': download_files,
260
+ 'generation_log': generation_log,
261
+ 'status': 'error'
262
+ }
263
 
264
  def _create_image_prompt(self, base_description: str, traits: Dict) -> str:
265
  """Create enhanced prompt for image generation"""