There is potentially more that could be abstract w.r.t. the Gradio and Stability clients.
Right now, the main difference seems to be whether requests are multipart or simple JSON.
Some thoughts:
- Would it be possible to (cleanly) manage POST / GET requests with one standard?
- It doesn't seem right to convert to a payload then right back to JSON for Stability client
- Should probably turn controls directly to array first and then build payload
However, it may not be worthwhile to explore this until more third-party providers are going to be supported.
There is potentially more that could be abstract w.r.t. the Gradio and Stability clients.
Right now, the main difference seems to be whether requests are multipart or simple JSON.
Some thoughts:
However, it may not be worthwhile to explore this until more third-party providers are going to be supported.