我正在用python构建一个Flasgger/Swagger。当我将值输入参数并执行代码时,我将看到以下错误。我还分享了异常图像。
"""Example endpoint returning a list of colors by value
This is using docstrings for specifications.
---
tags:
- Iris Prediction API Input values
parameters:
- name: s_length
in: path
type: string
required: true
default:
- name: s_width
in: path
type: string
required: true
default:
- name: p_length
in: path
type: string
required: true
default:
- name: p_width
in: path
type: string
required: true
default:
definitions:
value:
type: object
properties:
value_name:
type: string
items:
$ref: '#/definitions/Color'
Color:
type: string
responses:
200:
value: prediction details
schema:
$ref: '#/definitions/value'
examples:
rgb: ['red', 'green', 'blue']
"""ValueError:输入包含NaN、无穷大或对于dtype('float32')来说太大的值
发布于 2018-07-22 17:45:11
我可以通过改变这些参数来找出答案。
in: query
type: integerhttps://stackoverflow.com/questions/51460960
复制相似问题