fix: default model for image generation
This commit is contained in:
parent
a264e91f1f
commit
46c8d64dc5
@ -109,7 +109,8 @@ def _gen_text(prompt, use_zukijourney=False):
|
||||
@app.route('/gen_image', methods=['GET'])
|
||||
def gen_image():
|
||||
prompt = request.args.get('prompt')
|
||||
model = request.args.get('model', 'playground-v2.5')
|
||||
model = request.args.get('model')
|
||||
model = model if model else "playgroind-v2.5"
|
||||
|
||||
if not prompt:
|
||||
return "Error: No prompt provided", 400
|
||||
|
Loading…
Reference in New Issue
Block a user