Spaces:
Sleeping
Sleeping
setting TOKENIZERS_PARALLELISM to false
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
from haystack.utils import fetch_archive_from_http, clean_wiki_text, convert_files_to_docs
|
| 3 |
from haystack.schema import Answer
|
| 4 |
from haystack.document_stores import InMemoryDocumentStore
|
|
@@ -9,6 +10,8 @@ from markdown import markdown
|
|
| 9 |
from annotated_text import annotation
|
| 10 |
from PIL import Image
|
| 11 |
|
|
|
|
|
|
|
| 12 |
#Haystack Components
|
| 13 |
@st.cache(hash_funcs={"builtins.SwigPyObject": lambda _: None},allow_output_mutation=True)
|
| 14 |
def start_haystack():
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import os
|
| 3 |
from haystack.utils import fetch_archive_from_http, clean_wiki_text, convert_files_to_docs
|
| 4 |
from haystack.schema import Answer
|
| 5 |
from haystack.document_stores import InMemoryDocumentStore
|
|
|
|
| 10 |
from annotated_text import annotation
|
| 11 |
from PIL import Image
|
| 12 |
|
| 13 |
+
os.environ['TOKENIZERS_PARALLELISM'] = False
|
| 14 |
+
|
| 15 |
#Haystack Components
|
| 16 |
@st.cache(hash_funcs={"builtins.SwigPyObject": lambda _: None},allow_output_mutation=True)
|
| 17 |
def start_haystack():
|