[wip][vec] update client, test=doc #1543

pull/1547/head
qingen 4 years ago
parent 100998dec9
commit c2772dd186

@ -75,6 +75,7 @@ Then to start the system server, and it provides HTTP backend services.
Then start the server with Fastapi.
```bash
export PYTHONPATH=$PYTHONPATH:./src
python src/main.py
```
@ -126,7 +127,7 @@ Then to start the system server, and it provides HTTP backend services.
Navigate to 127.0.0.1:8068 in your browser to access the front-end interface
Note: If the browser and the service are not on the same machine, then the IP needs to be changed to the IP of the machine where the service is located, and the corresponding API_URL in docker-comemater. yaml needs to be changed and the service can be restarted
Note: If the browser and the service are not on the same machine, then the IP needs to be changed to the IP of the machine where the service is located, and the corresponding API_URL in docker-compose.yaml needs to be changed and the service can be restarted
- Insert data

@ -77,6 +77,7 @@ ffce340b3790 minio/minio:RELEASE.2020-12-03T00-03-10Z "/usr/bin/docker-ent…"
启动用 Fastapi 构建的服务
```bash
export PYTHONPATH=$PYTHONPATH:./src
python src/main.py
```

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
sys.path.append("..")
from config import DEFAULT_TABLE
from logs import LOGGER

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
sys.path.append("..")
from config import DEFAULT_TABLE
from logs import LOGGER

@ -14,10 +14,9 @@
import os
import sys
from config import DEFAULT_TABLE
from diskcache import Cache
from encode import get_audio_embedding
sys.path.append("..")
from config import DEFAULT_TABLE
from logs import LOGGER

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
sys.path.append("..")
from config import DEFAULT_TABLE
from config import TOP_K
from encode import get_audio_embedding

Loading…
Cancel
Save