Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,7 @@ from langchain.text_splitter import CharacterTextSplitter
|
|
23 |
|
24 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0, separator = "\n")
|
25 |
texts = text_splitter.split_text(hitchhikersguide)
|
26 |
-
|
27 |
-
"""
|
28 |
from langchain.embeddings.openai import OpenAIEmbeddings
|
29 |
|
30 |
embeddings = OpenAIEmbeddings()
|
@@ -51,4 +50,3 @@ gr.Interface(
|
|
51 |
outputs="text",
|
52 |
title="Hitchhikers Guide Question Answering",
|
53 |
).launch()
|
54 |
-
"""
|
|
|
23 |
|
24 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0, separator = "\n")
|
25 |
texts = text_splitter.split_text(hitchhikersguide)
|
26 |
+
|
|
|
27 |
from langchain.embeddings.openai import OpenAIEmbeddings
|
28 |
|
29 |
embeddings = OpenAIEmbeddings()
|
|
|
50 |
outputs="text",
|
51 |
title="Hitchhikers Guide Question Answering",
|
52 |
).launch()
|
|