File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -50,9 +50,6 @@ ADD convert-to-diffusers.py .
5050RUN python3 convert-to-diffusers.py
5151# RUN rm -rf checkpoints
5252
53- # Which model to download and use; fork / downstream specific.
54- ADD DOWNLOAD_VARS.py .
55-
5653# Add your model weight files
5754# (in this case we have a python script)
5855ADD loadModel.py .
@@ -63,7 +60,4 @@ RUN python3 download.py
6360ADD send.py .
6461ADD app.py .
6562
66- # Runtime vars (for init and inference); fork / downstream specific.
67- ADD APP_VARS.py .
68-
6963CMD python3 -u server.py
Original file line number Diff line number Diff line change 1717from send import send
1818import os
1919
20- from APP_VARS import MODEL_ID
20+ MODEL_ID = os . environ . get ( " MODEL_ID" )
2121
2222PIPELINES = [
2323 "StableDiffusionPipeline" ,
Original file line number Diff line number Diff line change 11# In this file, we define download_model
22# It runs during container build time to get model weights built into the container
33
4- from DOWNLOAD_VARS import MODEL_ID
4+ import os
55from loadModel import loadModel , MODEL_IDS
66
7+ MODEL_ID = os .environ .get ("MODEL_ID" )
8+
79
810def download_model ():
911 # do a dry run of loading the huggingface model, which will download weights at build time
You can’t perform that action at this time.
0 commit comments