ammargitham / WallFlow

Wallpaper app for Android using Jetpack Compose
GNU General Public License v3.0
325 stars 18 forks source link

Build filename from final model URL path if Content-Disposition not present #66

Closed RobBrazier closed 5 months ago

RobBrazier commented 7 months ago

fixes #65 I got this working, however I can't seem to figure out why the 'default' model of EfficientDet-Lite0 keeps getting downloaded It works fine for custom models but this may need some modification (done java before, but kotlin + android is a first for me so feel free to modify or do your own implementation as you wish)

The final url for the default model is https://storage.googleapis.com/kagglesdsdata/models/992/1146/1.tflite I didn't really want to just use the filename as it seems like all models are stored in the same folder. The entire path string should be unique though so opted for that - assuming people will still be trying to use the tfhub.dev urls

ammargitham commented 5 months ago

I had to revert the default model file name back for backward compat, as the file name is already inserted in the db when installing the app for the first time.