diff --git a/app/src/app.tsx b/app/src/app.tsx index 6c4d1b3c3..9bb94b114 100644 --- a/app/src/app.tsx +++ b/app/src/app.tsx @@ -1,4 +1,4 @@ -import { useState } from "react" +import { useState } from 'react' import copy from 'copy-to-clipboard' import { exec } from 'child_process' import * as path from 'path' @@ -7,11 +7,9 @@ import { DocumentDuplicateIcon } from '@heroicons/react/24/outline' import { app } from '@electron/remote' import OllamaIcon from './ollama.svg' -const ollama = app.isPackaged -? path.join(process.resourcesPath, 'ollama') -: path.resolve(process.cwd(), '..', 'ollama') +const ollama = app.isPackaged ? path.join(process.resourcesPath, 'ollama') : path.resolve(process.cwd(), '..', 'ollama') -function installCLI(callback: () => void) { +async function installCLI(callback: () => void) { const symlinkPath = '/usr/local/bin/ollama' if (fs.existsSync(symlinkPath) && fs.readlinkSync(symlinkPath) === ollama) { @@ -28,7 +26,7 @@ function installCLI(callback: () => void) { callback && callback() return } - + callback && callback() }) } @@ -39,36 +37,34 @@ export default function () { const command = 'ollama run orca' return ( -
- Let’s get you up and running with your own large language models. +
+ Let's get you up and running with your own large language models.
+- > ollama --
> ollama+
+
You will be prompted for administrator access
++- ) -} \ No newline at end of file +}Run your first model
++@@ -122,6 +116,5 @@ export default function () { > )}+-{command}- Run this command in your favorite terminal. -
+Run this command in your favorite terminal.