Spaces:
Runtime error
Runtime error
Update ai_app.py
Browse files
ai_app.py
CHANGED
@@ -30,10 +30,6 @@ openai_api_key=userdata.get('openai_api_key')
|
|
30 |
loader = CSVLoader(file_path='data.csv')
|
31 |
data=loader.load()
|
32 |
|
33 |
-
data[:2]
|
34 |
-
|
35 |
-
len(data)
|
36 |
-
|
37 |
#split the documnts
|
38 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
39 |
texts = text_splitter.split_documents(data)
|
@@ -237,7 +233,6 @@ def reg(message, history):
|
|
237 |
# # theme="soft",
|
238 |
# )
|
239 |
|
240 |
-
# # Apply custom CSS and launch the interface
|
241 |
# demo.launch(show_api=False)
|
242 |
gr.ChatInterface(predict).launch()
|
243 |
|
|
|
30 |
loader = CSVLoader(file_path='data.csv')
|
31 |
data=loader.load()
|
32 |
|
|
|
|
|
|
|
|
|
33 |
#split the documnts
|
34 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
35 |
texts = text_splitter.split_documents(data)
|
|
|
233 |
# # theme="soft",
|
234 |
# )
|
235 |
|
|
|
236 |
# demo.launch(show_api=False)
|
237 |
gr.ChatInterface(predict).launch()
|
238 |
|