Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: v6 input #4

Merged
merged 5 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM euclia/jaqpotpy-inference
FROM python:3.10

WORKDIR /app
WORKDIR /code

COPY requirements.txt .
COPY ./requirements.txt /code/requirements.txt
COPY ./src /code/src

RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Copy the application code to the working directory
COPY . .
COPY ./main.py /code/

EXPOSE 8002

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8002"]
CMD ["fastapi", "run", "main.py", "--port", "8002"]
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fastapi==0.111.0
pydantic==2.7.1
uvicorn==0.29.0
uvicorn==0.29.0
jaqpotpy==6.1.0
3 changes: 2 additions & 1 deletion src/helpers/json_to_predreq.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
def decode(request):
dataset = request.dataset
data_entry_all = [item['values']['0'] for item in dataset['dataEntry']]
data_entries = dataset['input']
data_entry_all = [item['values'][0] for item in data_entries]
return data_entry_all
Loading