期望值:第1行第1列(字符0)可以解决此问题吗?

if st.button('Get random predictions'):
    response = requests.post(URI, data={})
    response = json.loads(response.text)
    preds = response.get('prediction')
    image = response.get('image')
    image = np.reshape(image, (28, 28))   
    st.image(image, width=150)
评论