Skip to content

Commit

Permalink
feat(api): add endpoints for blend and noise settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 15, 2023
1 parent e403980 commit a8f0a7a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/onnx_web/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,21 @@ def introspect():
}


@app.route('/api/settings/blends')
def list_noise_sources():
return jsonify(list(blend_modes.keys()))


@app.route('/api/settings/models')
def list_models():
return jsonify(available_models)


@app.route('/api/settings/noises')
def list_noise_sources():
return jsonify(list(noise_sources.keys()))


@app.route('/api/settings/params')
def list_params():
return jsonify(config_params)
Expand Down

0 comments on commit a8f0a7a

Please sign in to comment.