Skip to content

bvankuik/TestLeapML

Repository files navigation

TestLeapML

This is a demo app that allows you to play around with the LeapML API. See also the API documentation.

The logo is a still life with a cabbage. This image was generated with the app.

Logo of still life with a cabbage

Current capabilities

  • Request an inference (i.e. combination of prompt and one or more images)
  • List all inference jobs
  • View an inference with its one or more images

Building and running

First create an API key by signing up.

Then create a file called Config.xcconfig in the root directory of the project, and add the key:

API_KEY = YOUR-KEY-HERE-0123456789012345678901

If you don't have this file, Xcode will emit the following error:

Config.xcconfig:1:1 unable to open configuration settings file

If you see the following line in the Xcode console, there's something wrong with the API key:

2023-02-22 11:45:25.604125+0100 TestLeapML[5371:134771] Server error 401

Shortcomings

  • Fastlane is useful
  • Add sharing
  • When a job is queued, we should periodically refresh; perhaps with Combine?
  • No way of searching
  • Prompts should be typed in, but perhaps there's a faster way, like in this article
  • There should be a share button for images
  • Layout on macOS/iPad is bad
  • Some sort of loading indicator should be shown when generating images and loading them
  • Errors are logged but not reported to the user

About

App that uses the LeapML API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published