choco-conoz commited on
Commit
2b7227f
·
1 Parent(s): 62a6e61

feat: HF_HOME

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -2
  2. src/streamlit_app.py +1 -0
Dockerfile CHANGED
@@ -9,10 +9,13 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
-
 
 
 
13
  COPY src/ ./src/
14
  # RUN pip3 install poetry==2.1.3
15
- # RUN pip install -U "huggingface_hub[cli]"
16
  COPY requirements.txt ./
17
  RUN pip3 install -r requirements.txt
18
  # COPY pyproject.toml README.md /app
 
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ ENV PYTHONUNBUFFERED=1 \
13
+ PORT=8000 \
14
+ HF_HOME=/home/user/huggingface
15
+
16
  COPY src/ ./src/
17
  # RUN pip3 install poetry==2.1.3
18
+ # RUN pip install -U "huggingface_hub"
19
  COPY requirements.txt ./
20
  RUN pip3 install -r requirements.txt
21
  # COPY pyproject.toml README.md /app
src/streamlit_app.py CHANGED
@@ -2,6 +2,7 @@ import os
2
  import streamlit as st
3
  import torch
4
  from transformers import pipeline
 
5
  # from unsloth import FastLanguageModel, is_bfloat16_supported
6
 
7
 
 
2
  import streamlit as st
3
  import torch
4
  from transformers import pipeline
5
+ # from huggingface_hub import notebook_login
6
  # from unsloth import FastLanguageModel, is_bfloat16_supported
7
 
8