test3
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def main():
|
|
62 |
user_question = st.text_input("Ask a Question from the document")
|
63 |
if user_question:
|
64 |
if not qa_pipeline and "raw_text" in st.session_state:
|
65 |
-
model_name = "
|
66 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
67 |
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
|
68 |
qa_pipeline = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
|
|
62 |
user_question = st.text_input("Ask a Question from the document")
|
63 |
if user_question:
|
64 |
if not qa_pipeline and "raw_text" in st.session_state:
|
65 |
+
model_name = "HanNayeoniee/LHK_DPO_v1"
|
66 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
67 |
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
|
68 |
qa_pipeline = pipeline("question-answering", model=model, tokenizer=tokenizer)
|