Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
import gradio as gr
|
3 |
import pandas as pd
|
4 |
import numpy as np
|
@@ -8,7 +7,7 @@ import re
|
|
8 |
import json
|
9 |
from auditqa.sample_questions import QUESTIONS
|
10 |
from auditqa.reports import POSSIBLE_REPORTS
|
11 |
-
from auditqa.engine.prompts import audience_prompts, answer_prompt_template,
|
12 |
from auditqa.doc_process import process_pdf
|
13 |
from langchain_core.prompts import ChatPromptTemplate
|
14 |
from langchain_core.output_parsers import StrOutputParser
|
@@ -72,7 +71,8 @@ async def chat(query,history,sources,reports):
|
|
72 |
|
73 |
# get prompt
|
74 |
|
75 |
-
prompt = ChatPromptTemplate.from_template(
|
|
|
76 |
|
77 |
# get llm
|
78 |
# llm_qa = HuggingFaceEndpoint(
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
|
|
7 |
import json
|
8 |
from auditqa.sample_questions import QUESTIONS
|
9 |
from auditqa.reports import POSSIBLE_REPORTS
|
10 |
+
from auditqa.engine.prompts import audience_prompts, answer_prompt_template, llama_propmt
|
11 |
from auditqa.doc_process import process_pdf
|
12 |
from langchain_core.prompts import ChatPromptTemplate
|
13 |
from langchain_core.output_parsers import StrOutputParser
|
|
|
71 |
|
72 |
# get prompt
|
73 |
|
74 |
+
prompt = ChatPromptTemplate.from_template(llama_propmt)
|
75 |
+
print(prompt)
|
76 |
|
77 |
# get llm
|
78 |
# llm_qa = HuggingFaceEndpoint(
|