Spaces:
Sleeping
Sleeping
<!-- templates/index.html --> | |
<html> | |
<head> | |
<title>Token Classification App</title> | |
</head> | |
<body> | |
<h1>Biomedical Token Tagger</h1> | |
<form method="POST"> | |
<textarea name="search" rows="4" cols="50" placeholder="Enter your biomedical sentence here"></textarea><br> | |
<label for="pipeline_select">Select a model:</label> | |
<select name="pipeline_select"> | |
{% for p in pipelines %} | |
<option value="{{ p.id }}">{{ p.name }}</option> | |
{% endfor %} | |
</select><br><br> | |
<button type="submit">Tag</button> | |
</form> | |
{% if results %} | |
<h2>Results (Model: {{ name }})</h2> | |
<ul> | |
{% for token, tag in results.items() %} | |
<li><strong>{{ token }}</strong>: {{ tag }}</li> | |
{% endfor %} | |
</ul> | |
{% endif %} | |
</body> | |
</html> | |