djeddi-yacine / brain_fusion

A new package to generate images with AI
https://pub.dev/packages/brain_fusion
BSD 3-Clause "New" or "Revised" License
38 stars 5 forks source link

Error: Exception: Error from AI package: RangeError (index): Invalid value: Valid value range is empty: 0 #1

Closed DiRuffy closed 1 year ago

DiRuffy commented 1 year ago

I am getting this two exception in your provided example.

Error: Exception: Error from AI package: RangeError (index): Invalid value: Valid value range is empty: 0

Exception: Error from AI package: HTTP request failed. Client is already closed.

How can we fix this and what does this mean?

djeddi-yacine commented 1 year ago

hey . thanks for use the package

the error you see was fix in the latest release 0.0.6

also in mobile devices don't forget to add internet permission in your app

Ravan1190 commented 1 year ago

how can i make the generated image downloadable ?

djeddi-yacine commented 1 year ago

how can i make the generated image downloadable ?

use dart:io and create file with png extention

Ravan1190 commented 1 year ago

Sir, can you add it in example please.

Thank You.