Skip to content

Commit

Permalink
Add extra instructions for ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoCaracciolo committed Dec 7, 2024
1 parent fff25f0 commit 0a74e81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ def reconstruct_dataset_from_csv(filename):
```console
sudo pacman -S ollama
```
If you have a Nvidia GPU, remember to install ollama-cuda for better performances:
```console
sudo pacman -S ollama-cuda
```
Then you can run ollama by executing this command:
```console
ollama serve
Expand All @@ -205,7 +210,12 @@ def reconstruct_dataset_from_csv(filename):
```console
ollama pull llama3.1
```
("""
You can also install custom models from HuggingFace:
```console
ollama pull hf.co/{username}/{repository}
```
"""
}

if is_flatpak():
Expand Down
3 changes: 2 additions & 1 deletion src/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def get_current_voice(self):
voice = self.get_setting("voice")
if not voice:
if not self.voices:
return None return self.voices[0][1]
return None
return self.voices[0][1]
else:
return voice

Expand Down

0 comments on commit 0a74e81

Please sign in to comment.