Skip to content

Commit

Permalink
Update docker-compose files and fix file download name
Browse files Browse the repository at this point in the history
  • Loading branch information
wd400 committed Mar 6, 2024
1 parent 5939f60 commit bcf0bff
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dev/frontend/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
frontend:
platform: linux/amd64
#platform: linux/amd64
build:
context: ../../
dockerfile: ./dev/frontend/Dockerfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def from_tensor(cls, tensor: torch.Tensor):
class LeniaParameters:
"""Holds input parameters for Lenia model."""

dynamic_params: LeniaDynamicalParameters = field(default_factory=LeniaDynamicalParameters)
dynamic_params: LeniaDynamicalParameters = field(default_factory=lambda : LeniaDynamicalParameters())
init_state: torch.Tensor = torch.rand((10, 10))


Expand Down
2 changes: 1 addition & 1 deletion services/base/ExpeDB/API/flask_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _get_file_from_document(document, filename, _filename: str = ""):
# if can't find file, try to follow pointer one level
new_filename = str(document[filename])
file = fs.get(ObjectId(document[new_filename]))
return send_file(file, attachment_filename=_filename)
return send_file(file, download_name=_filename)


def _add_files_to_document(collection, document, files):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!--display two list-->
<div class="card-group">

<div class="card">
<div class="card-body">
<h5 class="card-title">Input Space</h5>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@

<!-- more informations -->


<!-- <app-display-inputspace-outputspace
*ngIf="this.displayInputOutputSpace"
[inputList]="this.getInputList()"
[outputList]="this.getOtputList()"
[inputOutput]="this.getInputOutput()">
</app-display-inputspace-outputspace> -->


</div>
4 changes: 2 additions & 2 deletions services/base/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ services:
##### AUTODISC SERVER #####
autodisc-server:
hostname: autodisc-server
platform: linux/amd64
#platform: linux/amd64
build:
context: ../base/AutoDiscServer
environment:
Expand All @@ -106,7 +106,7 @@ services:
##### JUPYTER LAB #####
jupyter:
hostname: jupyter
platform: linux/amd64
# platform: linux/amd64
build:
context: ./JupyterLab
environment:
Expand Down
2 changes: 1 addition & 1 deletion services/dev/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# docker-compose.yml
version: "3" # TODO
version: "3.7" # TODO
services:
##### FRONTEND APP #####
app:
Expand Down
6 changes: 3 additions & 3 deletions services/dev/utils/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
services:
autodisc-py3.7:
platform: linux/amd64
autodisc-py3.11:
#platform: linux/amd64
build:
context: ../../
dockerfile: ./dev/autodisc/Dockerfile
tags:
- jesselin/autodisc-py3.7:v1
- jesselin/autodisc-py3.11:v1
tty: true
stdin_open: true
volumes:
Expand Down

0 comments on commit bcf0bff

Please sign in to comment.