Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -8,12 +8,6 @@ import json
|
|
8 |
from auditqa.sample_questions import QUESTIONS
|
9 |
from auditqa.reports import POSSIBLE_REPORTS
|
10 |
from auditqa.engine.prompts import audience_prompts
|
11 |
-
from auditqa.doc_process import process_markdown, process_pdf
|
12 |
-
from auditqa.engine.vectorstore import create_vectorstore
|
13 |
-
# process files
|
14 |
-
# process_markdown()
|
15 |
-
#docs = process_pdf()
|
16 |
-
#create_vectorstore(docs)
|
17 |
|
18 |
|
19 |
async def chat(query,history,audience,sources,reports):
|
@@ -140,9 +134,9 @@ with gr.Blocks(title="Audit Q&A", css="style.css", theme=theme,elem_id = "main-c
|
|
140 |
|
141 |
|
142 |
dropdown_sources = gr.CheckboxGroup(
|
143 |
-
["
|
144 |
label="Select source",
|
145 |
-
value=["
|
146 |
interactive=True,
|
147 |
)
|
148 |
|
|
|
8 |
from auditqa.sample_questions import QUESTIONS
|
9 |
from auditqa.reports import POSSIBLE_REPORTS
|
10 |
from auditqa.engine.prompts import audience_prompts
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
|
13 |
async def chat(query,history,audience,sources,reports):
|
|
|
134 |
|
135 |
|
136 |
dropdown_sources = gr.CheckboxGroup(
|
137 |
+
["ABC", "XYZ"],
|
138 |
label="Select source",
|
139 |
+
value=["ABC"],
|
140 |
interactive=True,
|
141 |
)
|
142 |
|