Skip to content

Commit

Permalink
Merge pull request #45 from baloise/main
Browse files Browse the repository at this point in the history
reenable NER
  • Loading branch information
robbizbal authored Nov 14, 2024
2 parents 8670e68 + 735e1c2 commit b78da69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/static/scripts/mask.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ document.getElementById('backendType').addEventListener('change', function() {
if (this.value === 'LLM') {
llmInputCheckbox.style.display = 'flex';
} else {
var llmInputDiv = document.getElementById('LLMInput');
var llmInputReset = document.getElementById('LLMReset');
llmInputCheckbox.style.display = 'none';
llmInputDiv.style.display = 'none'; // Hide the LLMInput div
llmInputReset.style.display = 'none';
}
});

Expand Down
6 changes: 3 additions & 3 deletions src/templates/html/mask.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ <h3>Input</h3>
<select id="backendType" name="backendType" required>
<option value="REG">REG</option>
<option value="LLM">LLM</option>
<!-- <option value="NER">NER</option> -->
<option value="NER">NER</option>
</select>
</div>
<label class="flex-item checkbox-label" id="LLMcustomLabel"><input type="checkbox" id="LLMcustom" name="LLMcustom">use custom settings</label>
<div id="LLMInput" class="flex-container">
<div class="flex-item">
<input type="text" name="LLMURL" id="inputLLMurl" placeholder="e.g.: http://localhost:11434"></input>
<input type="text" name="LLMURL" id="inputLLMurl" placeholder="http://localhost:11434"></input>
</div>
<div class="flex-item">
<input type="text" name="LLMMODEL" id="inputLLMmodel" placeholder="e.g.: llama3.2:latest"></input>
<input type="text" name="LLMMODEL" id="inputLLMmodel" placeholder="llama3.2:latest"></input>
</div>
<div id="LLMReset" class="flex-item">
<button id="btnLLMReset"type="button">Reset</button>
Expand Down

0 comments on commit b78da69

Please sign in to comment.