SantanuBanerjee commited on
Commit
6682e9f
·
verified ·
1 Parent(s): e46b418

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -365,7 +365,7 @@ def generate_project_proposal(prompt):
365
  try:
366
  # input_ids = tokenizer.encode(prompt, return_tensors="pt")
367
  # Truncate the prompt to fit within the model's input limits
368
- max_input_length = 2048 # Adjust as per your model's limit
369
  input_ids = tokenizer.encode(prompt, return_tensors="pt", truncation=True, max_length=max_input_length)
370
 
371
 
@@ -731,8 +731,8 @@ def process_excel(file):
731
 
732
 
733
  example_files = []
734
- # example_files.append('#TaxDirection (Responses)_BasicExample.xlsx')
735
- example_files.append('#TaxDirection (Responses)_IntermediateExample.xlsx')
736
  # example_files.append('#TaxDirection (Responses)_UltimateExample.xlsx')
737
 
738
 
 
365
  try:
366
  # input_ids = tokenizer.encode(prompt, return_tensors="pt")
367
  # Truncate the prompt to fit within the model's input limits
368
+ max_input_length = 1024 # Adjust as per your model's limit
369
  input_ids = tokenizer.encode(prompt, return_tensors="pt", truncation=True, max_length=max_input_length)
370
 
371
 
 
731
 
732
 
733
  example_files = []
734
+ example_files.append('#TaxDirection (Responses)_BasicExample.xlsx')
735
+ # example_files.append('#TaxDirection (Responses)_IntermediateExample.xlsx')
736
  # example_files.append('#TaxDirection (Responses)_UltimateExample.xlsx')
737
 
738