We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1486395 commit 651b60aCopy full SHA for 651b60a
demo/app.py
@@ -4,6 +4,7 @@
4
import pymupdf
5
import streamlit as st
6
7
+from structured_qa.config import ANSWER_PROMPT, FIND_PROMPT
8
from structured_qa.model_loaders import load_llama_cpp_model
9
from structured_qa.preprocessing import document_to_sections_dir
10
from structured_qa.workflow import find_retrieve_answer
@@ -51,6 +52,8 @@ def convert_to_sections(uploaded_file, output_dir):
51
52
model=model,
53
sections_dir=f"example_outputs/{uploaded_file.name}",
54
question=question,
55
+ find_prompt=FIND_PROMPT,
56
+ answer_prompt=ANSWER_PROMPT,
57
)
58
st.text("Sections checked:")
59
st.json(sections_checked)
0 commit comments