Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -214,8 +214,7 @@ def construct_index(directory_path):
|
|
| 214 |
|
| 215 |
def chatbot(input_text):
|
| 216 |
global chat_history
|
| 217 |
-
|
| 218 |
-
os.environ["OPENAI_API_KEY"] = "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"
|
| 219 |
query = input_text
|
| 220 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
| 221 |
texts = text_splitter.split_documents(documents)
|
|
|
|
| 214 |
|
| 215 |
def chatbot(input_text):
|
| 216 |
global chat_history
|
| 217 |
+
|
|
|
|
| 218 |
query = input_text
|
| 219 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
| 220 |
texts = text_splitter.split_documents(documents)
|