advaithbalram commited on
Commit
3e45d5e
·
1 Parent(s): 931472f

changed some files

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -1
  2. chatbot.py +1 -1
Dockerfile CHANGED
@@ -13,7 +13,6 @@ COPY . .
13
 
14
  # Set environment variables for Hugging Face and Transformers cache
15
  ENV HF_HOME=/app/.cache/huggingface
16
- ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
17
  ENV TOKENIZERS_PARALLELISM=false
18
 
19
  # Ensure the cache directory exists and is writable
 
13
 
14
  # Set environment variables for Hugging Face and Transformers cache
15
  ENV HF_HOME=/app/.cache/huggingface
 
16
  ENV TOKENIZERS_PARALLELISM=false
17
 
18
  # Ensure the cache directory exists and is writable
chatbot.py CHANGED
@@ -152,7 +152,7 @@ def summarize(user_id):
152
  cleaned_text = re.sub(r'\s+', ' ', text).strip()
153
  return cleaned_text
154
 
155
- def summarize_legal_document(document_text, chunk_size=512, max_output_length=64):
156
  try:
157
  chunks = [document_text[i:i+chunk_size] for i in range(0, len(document_text), chunk_size)]
158
  summaries = []
 
152
  cleaned_text = re.sub(r'\s+', ' ', text).strip()
153
  return cleaned_text
154
 
155
+ def summarize_legal_document(document_text, chunk_size=1024, max_output_length=64):
156
  try:
157
  chunks = [document_text[i:i+chunk_size] for i in range(0, len(document_text), chunk_size)]
158
  summaries = []