Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
| 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 |
-
|
| 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 |
|