fal-ai / fal

⚡ Fastest way to serve open source ML models to millions
https://fal.ai/docs
Apache License 2.0
549 stars 47 forks source link

fal: add ability to run apps in code #172

Closed efiop closed 1 month ago

efiop commented 7 months ago

Right now you need to find and hit the endpoint yourself, but it would be nice to be able to start and use the app natively in the code. E.g.

app.start()
app.endpoint_method(arg1, arg2)

Need to investigate how hard it would be to convert python inputs to json to send to the endpoint and then convert the results back. But maybe could just use dicts...

linear[bot] commented 7 months ago

FEA-2309 fal: add ability to run apps in code

jfischoff commented 7 months ago

But maybe could just use dicts.

Can't we use the output types we define?

efiop commented 7 months ago

@jfischoff Yes, I think we should be able to.

efiop commented 1 month ago

For the record, we have AppClient.connect now.