Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,10 +8,10 @@ os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
|
| 8 |
def construct_index(directory_path):
|
| 9 |
# Your existing code for index construction remains unchanged
|
| 10 |
def construct_index(directory_path):
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
def chatbot(input_text):
|
| 17 |
response = openai.Completion.create(
|
|
|
|
| 8 |
def construct_index(directory_path):
|
| 9 |
# Your existing code for index construction remains unchanged
|
| 10 |
def construct_index(directory_path):
|
| 11 |
+
max_input_size = 4096
|
| 12 |
+
num_outputs = 512
|
| 13 |
+
max_chunk_overlap = 20
|
| 14 |
+
chunk_size_limit = 600
|
| 15 |
|
| 16 |
def chatbot(input_text):
|
| 17 |
response = openai.Completion.create(
|