shekharp77 commited on
Commit
278e439
·
1 Parent(s): e29673a

first commit

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -1
  2. main.py +1 -0
Dockerfile CHANGED
@@ -7,10 +7,12 @@ WORKDIR /code
7
 
8
  COPY requirements.txt /code/requirements.txt
9
 
 
 
10
  # COPY /Users/shekharsingh/code/nsph/models/llemma_7b /code/llemma_7b
11
 
12
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
14
  COPY . .
15
 
16
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
7
 
8
  COPY requirements.txt /code/requirements.txt
9
 
10
+ COPY main.py /code/main.py
11
+
12
  # COPY /Users/shekharsingh/code/nsph/models/llemma_7b /code/llemma_7b
13
 
14
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
 
16
  COPY . .
17
 
18
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
main.py CHANGED
@@ -7,6 +7,7 @@ model_path = '"EleutherAI/llemma_7b"'
7
  model = LlamaForCausalLM.from_pretrained(model_path)
8
  tokenizer = AutoTokenizer.from_pretrained(model_path)
9
 
 
10
  class validation(BaseModel):
11
  prompt: str
12
 
 
7
  model = LlamaForCausalLM.from_pretrained(model_path)
8
  tokenizer = AutoTokenizer.from_pretrained(model_path)
9
 
10
+
11
  class validation(BaseModel):
12
  prompt: str
13