Spaces:
Sleeping
Sleeping
File size: 875 Bytes
e9e498c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
<!-- templates/index.html -->
<!DOCTYPE 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>
|