Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
b361fa72
Commit
b361fa72
authored
Jun 25, 2023
by
Jeffrey Morgan
Browse files
reorganize directories
parent
d3709f85
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
59 additions
and
5 deletions
+59
-5
.gitignore
.gitignore
+5
-0
README.md
README.md
+53
-3
build.py
build.py
+1
-2
desktop/.eslintrc.json
desktop/.eslintrc.json
+0
-0
desktop/.gitignore
desktop/.gitignore
+0
-0
desktop/.prettierrc.json
desktop/.prettierrc.json
+0
-0
desktop/forge.config.ts
desktop/forge.config.ts
+0
-0
desktop/images/icon.icns
desktop/images/icon.icns
+0
-0
desktop/package-lock.json
desktop/package-lock.json
+0
-0
desktop/package.json
desktop/package.json
+0
-0
desktop/postcss.config.js
desktop/postcss.config.js
+0
-0
desktop/src/app.css
desktop/src/app.css
+0
-0
desktop/src/app.tsx
desktop/src/app.tsx
+0
-0
desktop/src/index.html
desktop/src/index.html
+0
-0
desktop/src/index.ts
desktop/src/index.ts
+0
-0
desktop/src/preload.ts
desktop/src/preload.ts
+0
-0
desktop/src/renderer.tsx
desktop/src/renderer.tsx
+0
-0
desktop/tailwind.config.js
desktop/tailwind.config.js
+0
-0
desktop/tsconfig.json
desktop/tsconfig.json
+0
-0
desktop/webpack.main.config.ts
desktop/webpack.main.config.ts
+0
-0
No files found.
.gitignore
View file @
b361fa72
.DS_Store
.DS_Store
.vscode
.vscode
.env
.venv
*.spec
build
dist
README.md
View file @
b361fa72
#
P
roto
type
#
p
roto
## Setup
🙊
## Running
Install dependencies:
```
```
brew
install
npm
pip
install
-r requirements.txt
```
```
Put your model in
`models/`
and run:
```
python proto.py
```
To run the app:
```
cd desktop
npm install
npm start
```
## Building
If using Apple silicon, you need a Python version that supports arm64:
```
bash
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh
bash Miniforge3-MacOSX-arm64.sh
```
Get the dependencies:
```
bash
pip
install
-r
requirements.txt
```
```
bash
python3 build.py
```
Then to build the app:
```
cd desktop
npm run package
```
## API
### `POST /generate`
model:
`string`
- The name of the model to use in the
`models`
folder.
prompt:
`string`
- The prompt to use.
server/
build.py
→
build.py
View file @
b361fa72
...
@@ -7,7 +7,7 @@ site_packages_dir = site.getsitepackages()[0]
...
@@ -7,7 +7,7 @@ site_packages_dir = site.getsitepackages()[0]
llama_cpp_dir
=
os
.
path
.
join
(
site_packages_dir
,
"llama_cpp"
)
llama_cpp_dir
=
os
.
path
.
join
(
site_packages_dir
,
"llama_cpp"
)
args
=
[
args
=
[
"
server
.py"
,
"
proto
.py"
,
"--paths"
,
"--paths"
,
site_packages_dir
,
site_packages_dir
,
"--add-data"
,
"--add-data"
,
...
@@ -17,4 +17,3 @@ args = [
...
@@ -17,4 +17,3 @@ args = [
# generate the .spec file and run PyInstaller
# generate the .spec file and run PyInstaller
pyi_run
(
args
)
pyi_run
(
args
)
client
/.eslintrc.json
→
desktop
/.eslintrc.json
View file @
b361fa72
File moved
client
/.gitignore
→
desktop
/.gitignore
View file @
b361fa72
File moved
.prettierrc.json
→
desktop/
.prettierrc.json
View file @
b361fa72
File moved
client
/forge.config.ts
→
desktop
/forge.config.ts
View file @
b361fa72
File moved
client
/images/icon.icns
→
desktop
/images/icon.icns
View file @
b361fa72
File moved
client
/package-lock.json
→
desktop
/package-lock.json
View file @
b361fa72
File moved
client
/package.json
→
desktop
/package.json
View file @
b361fa72
File moved
client
/postcss.config.js
→
desktop
/postcss.config.js
View file @
b361fa72
File moved
client
/src/app.css
→
desktop
/src/app.css
View file @
b361fa72
File moved
client
/src/app.tsx
→
desktop
/src/app.tsx
View file @
b361fa72
File moved
client
/src/index.html
→
desktop
/src/index.html
View file @
b361fa72
File moved
client
/src/index.ts
→
desktop
/src/index.ts
View file @
b361fa72
File moved
client
/src/preload.ts
→
desktop
/src/preload.ts
View file @
b361fa72
File moved
client
/src/renderer.tsx
→
desktop
/src/renderer.tsx
View file @
b361fa72
File moved
client
/tailwind.config.js
→
desktop
/tailwind.config.js
View file @
b361fa72
File moved
client
/tsconfig.json
→
desktop
/tsconfig.json
View file @
b361fa72
File moved
client
/webpack.main.config.ts
→
desktop
/webpack.main.config.ts
View file @
b361fa72
File moved
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment