Merge branch 'main' of github.com:LAION-AI/Open-Chat-GPT

This commit is contained in:
Yannic Kilcher
2023-01-02 16:38:42 +01:00
117 changed files with 1229 additions and 416 deletions
+9 -3
View File
@@ -1,6 +1,12 @@
# Backend Development Setup
In root directory, run `docker compose up backend-dev --build --attach-dependencies` to start a database. The default settings are already configured to connect to the database at `localhost:5432`.
In root directory, run
`docker compose up backend-dev --build --attach-dependencies` to start a
database. The default settings are already configured to connect to the database
at `localhost:5432`.
Make sure you have all requirements installed. You can do this by running `pip install -r requirements.txt` inside the `backend` folder and `pip install -e .` inside the `oasst-shared` folder.
Then, run the backend using the `run-local.sh` script. This will start the backend server at `http://localhost:8080`.
Make sure you have all requirements installed. You can do this by running
`pip install -r requirements.txt` inside the `backend` folder and
`pip install -e .` inside the `oasst-shared` folder. Then, run the backend using
the `run-local.sh` script. This will start the backend server at
`http://localhost:8080`.
+5 -2
View File
@@ -1,5 +1,8 @@
# Frontend Development Setup
In root directory run `docker compose up frontend-dev --build --attach-dependencies` to start a database and the backend server.
In root directory run
`docker compose up frontend-dev --build --attach-dependencies` to start a
database and the backend server.
Then, point your frontend at `http://localhost:8080` to start developing. During development, any API key will be accepted.
Then, point your frontend at `http://localhost:8080` to start developing. During
development, any API key will be accepted.
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import numpy as np
from scipy import log2
from scipy.integrate import nquad
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from typing import List
import numpy as np
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from dataclasses import dataclass, replace
from typing import Any