{% extends "base.html" %} {% load crispy_forms_tags %} {% load url %} {% load bleach %} {% load random_encode %} {% load guardian_tags %} {% block title %} Try-out Algorithm - {{ block.super }} {% endblock %} {% block script %} {{ block.super }} {{ form.media }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

Try-out Algorithm

{{ algorithm.job_create_page_markdown|md2html }} {% get_obj_perms request.user for algorithm as "algorithm_perms" %} {% if form.jobs_limit < 1 %}

You have run out of credits to try this algorithm. You can request more credits by sending an e-mail to support@grand-challenge.org.

{% else %}

Select the data that you would like to run the algorithm on.

{% if 'change_algorithm' in algorithm_perms %}

As an editor, you can test and debug your algorithm in total {{ editors_job_limit }} times per unique algorithm image. Failed runs do not count towards this limit. You share these credits with all other editors of this algorithm. Once you have reached the limit, any extra jobs will be deducted from your personal algorithm credits, of which you get {{ request.user.user_credit.credits }} per month.

{% elif form.jobs_limit > 0 %} You receive {{ request.user.user_credit.credits }} credits per month. {% endif %} Using this algorithm requires {{ algorithm.credits_per_job }} credit{{ algorithm.credits_per_job|pluralize }} per job. You can currently create up to {{ form.jobs_limit }} job{{ form.jobs_limit|pluralize }} for this algorithm.

{% csrf_token %} {{ form|crispy }}

By running this algorithm you agree to the General Terms of Service{% if algorithm.additional_terms_markdown %}, as well as this algorithm's specific Terms of Service: {% else %}. {% endif %}

{{ algorithm.additional_terms_markdown|md2html }} {% endif %} {% endblock %}