Spaces:
Build error
Build error
fix
Browse files
utils.py
CHANGED
@@ -70,7 +70,7 @@ def parse_csv(uploaded_file):
|
|
70 |
|
71 |
|
72 |
@st.cache(allow_output_mutation=True)
|
73 |
-
def text_to_docs(text: str
|
74 |
"""Converts a string or list of strings to a list of Documents
|
75 |
with metadata."""
|
76 |
if isinstance(text, str):
|
|
|
70 |
|
71 |
|
72 |
@st.cache(allow_output_mutation=True)
|
73 |
+
def text_to_docs(text: str) -> List[Document]:
|
74 |
"""Converts a string or list of strings to a list of Documents
|
75 |
with metadata."""
|
76 |
if isinstance(text, str):
|