Skip to content

Commit b78da69

Browse files
authored
Merge pull request #45 from baloise/main
reenable NER
2 parents 8670e68 + 735e1c2 commit b78da69

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/static/scripts/mask.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ document.getElementById('backendType').addEventListener('change', function() {
44
if (this.value === 'LLM') {
55
llmInputCheckbox.style.display = 'flex';
66
} else {
7+
var llmInputDiv = document.getElementById('LLMInput');
8+
var llmInputReset = document.getElementById('LLMReset');
79
llmInputCheckbox.style.display = 'none';
10+
llmInputDiv.style.display = 'none'; // Hide the LLMInput div
11+
llmInputReset.style.display = 'none';
812
}
913
});
1014

src/templates/html/mask.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ <h3>Input</h3>
3636
<select id="backendType" name="backendType" required>
3737
<option value="REG">REG</option>
3838
<option value="LLM">LLM</option>
39-
<!-- <option value="NER">NER</option> -->
39+
<option value="NER">NER</option>
4040
</select>
4141
</div>
4242
<label class="flex-item checkbox-label" id="LLMcustomLabel"><input type="checkbox" id="LLMcustom" name="LLMcustom">use custom settings</label>
4343
<div id="LLMInput" class="flex-container">
4444
<div class="flex-item">
45-
<input type="text" name="LLMURL" id="inputLLMurl" placeholder="e.g.: http://localhost:11434"></input>
45+
<input type="text" name="LLMURL" id="inputLLMurl" placeholder="http://localhost:11434"></input>
4646
</div>
4747
<div class="flex-item">
48-
<input type="text" name="LLMMODEL" id="inputLLMmodel" placeholder="e.g.: llama3.2:latest"></input>
48+
<input type="text" name="LLMMODEL" id="inputLLMmodel" placeholder="llama3.2:latest"></input>
4949
</div>
5050
<div id="LLMReset" class="flex-item">
5151
<button id="btnLLMReset"type="button">Reset</button>

0 commit comments

Comments
 (0)