results.html 1.1 KB

123456789101112131415161718192021222324252627282930
  1. {% extends "layout.html" %}
  2. {% block body %}
  3. <table class="table table-hover table-sm table-stripped">
  4. <tbody>
  5. {% for result in results %}
  6. <tr>
  7. <td align="center"><b> {{ result.filename }} </b></td>
  8. {% for predict_prob in result.predict_probs %}
  9. <td align="center"><b> {{ predict_prob.name|replace("_", " ")|
  10. title}} </b></td>
  11. {% endfor %}
  12. </tr>
  13. <tr>
  14. <td align="center">
  15. <img src="data:image/png;base64,{{ result.image }}" style="width:244px;
  16. height:224px;" class="img-rounded"/>
  17. </td>
  18. {% for predict_prob in result.predict_probs %}
  19. <td class="vert-align" align="center"> {{ predict_prob.prob }}
  20. </td>
  21. {% endfor %}
  22. </tr>
  23. {% endfor %}
  24. </tbody>
  25. </table>
  26. {% endblock %}
  27. {% block nav_buttons %}
  28. <a class="btn btn-default navbar-btn" href='{{ url_for('index')}}'>Start Over</a>
  29. <a class="btn btn-default navbar-btn" href='{{ url_for('predict')}}'>Select New Files</a>
  30. {% endblock %}