Skip to content

Commit

Permalink
fix(api): adjust output path for module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 6, 2023
1 parent b59519c commit c6662d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ def txt2img():

@app.route('/output/<path:filename>')
def output(filename):
return send_from_directory(output_path, filename, as_attachment=False)
return send_from_directory(path.join('..', output_path), filename, as_attachment=False)

0 comments on commit c6662d1

Please sign in to comment.