Updated label

This commit is contained in:
jeffser 2024-10-14 16:36:07 -06:00
parent 61f9e187bd
commit 4f9aebf7a3
2 changed files with 3 additions and 2 deletions

View File

@ -23,9 +23,9 @@ def log_output(pipe):
window.show_toast(_("Model request too large for system"), window.main_overlay) window.show_toast(_("Model request too large for system"), window.main_overlay)
elif 'msg="amdgpu detected, but no compatible rocm library found.' in line: elif 'msg="amdgpu detected, but no compatible rocm library found.' in line:
if bool(os.getenv("FLATPAK_ID")): if bool(os.getenv("FLATPAK_ID")):
window.ollama_information_label.set_label(_("AMD GPU detected but <a href='https://github.com/Jeffser/Alpaca/wiki/AMD-Support'>the extension</a> is missing, Ollama will use CPU")) window.ollama_information_label.set_label(_("AMD GPU detected but the extension is missing, Ollama will use CPU\n{}Alpaca support{}").format("<a href='https://github.com/Jeffser/Alpaca/wiki/AMD-Support'>", "</a>"))
else: else:
window.ollama_information_label.set_label(_("AMD GPU detected but ROCm is missing, Ollama will use CPU")) window.ollama_information_label.set_label(_("AMD GPU detected but ROCm is missing, Ollama will use CPU\n{}Alpaca support{}").format("<a href='https://github.com/Jeffser/Alpaca/wiki/AMD-Support'>", "</a>"))
window.ollama_information_label.set_css_classes(['dim-label', 'error']) window.ollama_information_label.set_css_classes(['dim-label', 'error'])
elif 'msg="amdgpu is supported"' in line: elif 'msg="amdgpu is supported"' in line:
window.ollama_information_label.set_label(_("Using AMD GPU type '{}'").format(line.split('=')[-1])) window.ollama_information_label.set_label(_("Using AMD GPU type '{}'").format(line.split('=')[-1]))

View File

@ -477,6 +477,7 @@
<property name="wrap">true</property> <property name="wrap">true</property>
<property name="use-markup">true</property> <property name="use-markup">true</property>
<property name="label" translatable="yes">Integrated Ollama instance is not running</property> <property name="label" translatable="yes">Integrated Ollama instance is not running</property>
<property name="justify">2</property>
<style> <style>
<class name="dim-label"/> <class name="dim-label"/>
</style> </style>