Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,13 +25,14 @@ package_list_ = ""
|
|
| 25 |
for package in installed_packages:
|
| 26 |
package_list_ = package_list_ + f"{package.key}=={package.version}\n"
|
| 27 |
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
######## Vector Store #######
|
| 31 |
# process all files and get the vectorstores collections
|
| 32 |
# vectorestore colection are stored on persistent storage so this needs to be run only once
|
| 33 |
# hence, comment out line below when creating for first time
|
| 34 |
-
|
| 35 |
|
| 36 |
# -------------------------------------------------------------
|
| 37 |
# Functions
|
|
@@ -325,8 +326,9 @@ with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-
|
|
| 325 |
- By using this chatbot, you agree to these terms and acknowledge that you are solely responsible for any reliance on or actions taken based on its responses.
|
| 326 |
- **This is just a prototype and being tested and worked upon, so its not perfect and may sometimes give irrelevant answers**. If you are not satisfied with the answer, please ask a more specific question or report your feedback to help us improve the system.
|
| 327 |
""")
|
|
|
|
|
|
|
| 328 |
|
| 329 |
-
gr.DownloadButton("Download the file",value = "requirements.txt",inputs = package_list_, visible=True)
|
| 330 |
|
| 331 |
# using event listeners for 1. query box 2. click on example question
|
| 332 |
# https://www.gradio.app/docs/gradio/textbox#event-listeners-arguments
|
|
|
|
| 25 |
for package in installed_packages:
|
| 26 |
package_list_ = package_list_ + f"{package.key}=={package.version}\n"
|
| 27 |
|
| 28 |
+
print(package_list_)
|
| 29 |
|
| 30 |
|
| 31 |
######## Vector Store #######
|
| 32 |
# process all files and get the vectorstores collections
|
| 33 |
# vectorestore colection are stored on persistent storage so this needs to be run only once
|
| 34 |
# hence, comment out line below when creating for first time
|
| 35 |
+
vectorstores = process_pdf()
|
| 36 |
|
| 37 |
# -------------------------------------------------------------
|
| 38 |
# Functions
|
|
|
|
| 326 |
- By using this chatbot, you agree to these terms and acknowledge that you are solely responsible for any reliance on or actions taken based on its responses.
|
| 327 |
- **This is just a prototype and being tested and worked upon, so its not perfect and may sometimes give irrelevant answers**. If you are not satisfied with the answer, please ask a more specific question or report your feedback to help us improve the system.
|
| 328 |
""")
|
| 329 |
+
|
| 330 |
+
|
| 331 |
|
|
|
|
| 332 |
|
| 333 |
# using event listeners for 1. query box 2. click on example question
|
| 334 |
# https://www.gradio.app/docs/gradio/textbox#event-listeners-arguments
|