@dataclouder/ngx-agent-cards 0.1.88 → 0.1.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5325,6 +5325,7 @@ class ACCMotionGenerationComponent {
5325
5325
  alert('Please select a resolution');
5326
5326
  return;
5327
5327
  }
5328
+ debugger;
5328
5329
  const emptyAsset = {
5329
5330
  name: 'Character Video',
5330
5331
  type: 'video',
@@ -5350,12 +5351,21 @@ class ACCMotionGenerationComponent {
5350
5351
  console.log(emptyAsset);
5351
5352
  this.toastService.info({ title: 'Generando video NO Cierres esta ventana', subtitle: 'Esto puede tomar unos momentos' });
5352
5353
  const dataAsset = await this.assetService.saveGeneratedAssets(emptyAsset);
5353
- const videoGen = await this.assetService.generateVideoFromAsset(dataAsset.id);
5354
- this.generatedAsset.set(videoGen);
5355
- const storageMotion = { ...videoGen.result, metadata: { moodState: this.emotionSelected } };
5356
- this.storageMotion.set(storageMotion);
5357
- this.isLoading.set(false);
5358
- this.audioNotificationService.playFinishNotification();
5354
+ try {
5355
+ const videoGen = await this.assetService.generateVideoFromAsset(dataAsset.id);
5356
+ this.generatedAsset.set(videoGen);
5357
+ const storageMotion = { ...videoGen.result, metadata: { moodState: this.emotionSelected } };
5358
+ this.storageMotion.set(storageMotion);
5359
+ this.audioNotificationService.playFinishNotification();
5360
+ }
5361
+ catch (err) {
5362
+ console.log(err);
5363
+ this.toastService.error({ title: 'Ocurrio un error al generar', subtitle: err });
5364
+ // this.as
5365
+ }
5366
+ finally {
5367
+ this.isLoading.set(false);
5368
+ }
5359
5369
  }
5360
5370
  ngOnInit() {
5361
5371
  const defaultRatio = this.aspectRatioOptions.find((option) => option.label === 'vertical_9_16');