alexandraroze commited on
Commit
6e8796e
·
1 Parent(s): 3d02141

updated app

Browse files
Files changed (3) hide show
  1. Dockerfile +0 -2
  2. app.py +3 -0
  3. requirements.txt +3 -4
Dockerfile CHANGED
@@ -31,8 +31,6 @@ RUN mkdir app
31
  WORKDIR $HOME/app
32
  COPY . $HOME/app
33
 
34
- #RUN git lfs pull
35
-
36
  EXPOSE 7860
37
 
38
  CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]
 
31
  WORKDIR $HOME/app
32
  COPY . $HOME/app
33
 
 
 
34
  EXPOSE 7860
35
 
36
  CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]
app.py CHANGED
@@ -36,6 +36,9 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
36
  with open(f"{data_folder}/car_parts.json", "r") as f:
37
  car_parts = json.load(f)
38
 
 
 
 
39
 
40
  if "pipeline" not in st.session_state:
41
  st.session_state.pipeline = InvoiceGenerator(
 
36
  with open(f"{data_folder}/car_parts.json", "r") as f:
37
  car_parts = json.load(f)
38
 
39
+ faiss_index_path = f"{data_folder}/invoice_index.faiss"
40
+ print("File size:", os.path.getsize(faiss_index_path))
41
+
42
 
43
  if "pipeline" not in st.session_state:
44
  st.session_state.pipeline = InvoiceGenerator(
requirements.txt CHANGED
@@ -1,16 +1,15 @@
1
- numpy
2
  torch==2.4.0
3
  wheel==0.45.1
4
  clip @ git+https://github.com/openai/CLIP.git@main
5
- torchvision
6
  vllm==0.6.3
7
  pillow==10.3.0
8
  PyMuPDF==1.24.13
9
  pandas==2.2.3
10
- faiss-cpu
11
  huggingface==0.0.1
12
  huggingface-hub==0.26.2
13
  md2pdf==1.0.1
14
  pypdf==5.1.0
15
  streamlit==1.40.1
16
- fuzzywuzzy
 
 
1
  torch==2.4.0
2
  wheel==0.45.1
3
  clip @ git+https://github.com/openai/CLIP.git@main
4
+ torchvision==0.19.0
5
  vllm==0.6.3
6
  pillow==10.3.0
7
  PyMuPDF==1.24.13
8
  pandas==2.2.3
9
+ faiss-cpu==1.9.0
10
  huggingface==0.0.1
11
  huggingface-hub==0.26.2
12
  md2pdf==1.0.1
13
  pypdf==5.1.0
14
  streamlit==1.40.1
15
+ fuzzywuzzy==0.18.0