Sp2503 commited on
Commit
c404b3f
·
verified ·
1 Parent(s): f063b5d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -10
Dockerfile CHANGED
@@ -22,16 +22,7 @@ ENV TRANSFORMERS_CACHE=/tmp/hf_cache
22
  EXPOSE 7860
23
 
24
  # Precompute embeddings at build time (optional: adjust if dataset is large)
25
- #RUN python -c "\
26
- import os, torch, pandas as pd;\
27
- from sentence_transformers import SentenceTransformer;\
28
- model = SentenceTransformer('./muril_combined_multilingual_model');\
29
- df = pd.read_csv('./muril_multilingual_dataset.csv').dropna(subset=['question','answer']);\
30
- answers = df['answer'].tolist();\
31
- embeddings = model.encode(answers, convert_to_tensor=True);\
32
- torch.save(embeddings, './answer_embeddings.pt');\
33
- print('✅ Precomputed embeddings saved');\
34
- "
35
 
36
  # Run FastAPI with uvicorn
37
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "]()
 
22
  EXPOSE 7860
23
 
24
  # Precompute embeddings at build time (optional: adjust if dataset is large)
25
+
 
 
 
 
 
 
 
 
 
26
 
27
  # Run FastAPI with uvicorn
28
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "]()