Updated label
This commit is contained in:
parent
61f9e187bd
commit
4f9aebf7a3
@ -23,9 +23,9 @@ def log_output(pipe):
|
||||
window.show_toast(_("Model request too large for system"), window.main_overlay)
|
||||
elif 'msg="amdgpu detected, but no compatible rocm library found.' in line:
|
||||
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:
|
||||
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'])
|
||||
elif 'msg="amdgpu is supported"' in line:
|
||||
window.ollama_information_label.set_label(_("Using AMD GPU type '{}'").format(line.split('=')[-1]))
|
||||
|
@ -477,6 +477,7 @@
|
||||
<property name="wrap">true</property>
|
||||
<property name="use-markup">true</property>
|
||||
<property name="label" translatable="yes">Integrated Ollama instance is not running</property>
|
||||
<property name="justify">2</property>
|
||||
<style>
|
||||
<class name="dim-label"/>
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user