mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-25 17:34:22 +01:00
Merge pull request #58 from jina-ai/fix_encoding_windows
💿 fix: encoding windows
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
jina==3.15.1.dev14
|
||||
click
|
||||
streamlit
|
||||
openai
|
||||
streamlit==1.9.0
|
||||
openai>=0.26.0
|
||||
psutil
|
||||
jina
|
||||
jcloud
|
||||
jina-hubble-sdk
|
||||
langchain
|
||||
@@ -229,7 +229,7 @@ with:
|
||||
port: 8080
|
||||
protocol: http
|
||||
jcloud:
|
||||
version: 3.14.2.dev18
|
||||
version: 3.15.1.dev14
|
||||
labels:
|
||||
creator: microchain
|
||||
name: gptdeploy
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
|
||||
os.environ['PYTHONIOENCODING'] = 'utf-8'
|
||||
os.environ['PYTHONLEGACYWINDOWSSTDIO'] = 'utf-8'
|
||||
os.environ['PYTHONLEGACYWINDOWSSTDIO'] = 'utf-8'
|
||||
os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'python' # because protobuf issues on windows
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM jinaai/jina:3.14.1-py310-standard
|
||||
FROM jinaai/jina:3.15.1-dev14-py39-standard
|
||||
|
||||
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y git pip nginx && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
streamlit==1.16.0
|
||||
extra-streamlit-components==0.1.55
|
||||
jina==3.14.1
|
||||
jina==3.15.1.dev14
|
||||
@@ -167,7 +167,7 @@ template_generate_requirements = PromptTemplate.from_template(
|
||||
Write the content of the requirements.txt file.
|
||||
Make sure to include pytest.
|
||||
Make sure to include openai>=0.26.0.
|
||||
Make sure that jina==3.14.1.
|
||||
Make sure that jina==3.15.1.dev14.
|
||||
Make sure that docarray==0.21.0.
|
||||
You must not add gpt_3_5_turbo_api to the requirements.txt file.
|
||||
|
||||
@@ -187,7 +187,7 @@ Usually libraries are installed with apt-get.
|
||||
Be aware that the machine the docker container is running on does not have a GPU - only CPU.
|
||||
Add the config.yml file to the Dockerfile.
|
||||
Note that the Dockerfile only has access to the files: microservice.py, requirements.txt, config.yml and test_microservice.py.
|
||||
The base image of the Dockerfile is FROM jinaai/jina:3.14.1-py39-standard.
|
||||
The base image of the Dockerfile is FROM jinaai/jina:3.15.1-dev14-py39-standard.
|
||||
The entrypoint is ENTRYPOINT ["jina", "executor", "--uses", "config.yml"].
|
||||
Make sure the all files are in the /workdir.
|
||||
The Dockerfile runs the test during the build process.
|
||||
|
||||
Reference in New Issue
Block a user