Spaces:
Running
Running
Merge branch 'main' of https://huggingface.co/spaces/Tuana/GoT-QA-Haystack
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import streamlit as st
|
2 |
-
from haystack.nodes.connector import Crawler
|
3 |
from haystack.utils import fetch_archive_from_http, clean_wiki_text, convert_files_to_docs
|
4 |
from haystack.document_stores import InMemoryDocumentStore
|
5 |
from haystack.pipelines import ExtractiveQAPipeline
|
@@ -11,4 +10,5 @@ doc_dir = './article_txt_got'
|
|
11 |
document_store = InMemoryDocumentStore()
|
12 |
docs = convert_files_to_docs(dir_path=doc_dir, clean_func=clean_wiki_text, split_paragraphs=True)
|
13 |
|
|
|
14 |
st.write(docs[1])
|
|
|
1 |
import streamlit as st
|
|
|
2 |
from haystack.utils import fetch_archive_from_http, clean_wiki_text, convert_files_to_docs
|
3 |
from haystack.document_stores import InMemoryDocumentStore
|
4 |
from haystack.pipelines import ExtractiveQAPipeline
|
|
|
10 |
document_store = InMemoryDocumentStore()
|
11 |
docs = convert_files_to_docs(dir_path=doc_dir, clean_func=clean_wiki_text, split_paragraphs=True)
|
12 |
|
13 |
+
|
14 |
st.write(docs[1])
|