Spaces:
Sleeping
Sleeping
Commit
·
bb7941a
1
Parent(s):
1ea8371
See if with this awful workaround things work
Browse files- app.py +3 -0
- requirements-bin.txt +2 -0
- requirements.txt +0 -2
app.py
CHANGED
@@ -13,6 +13,9 @@ import streamlit as st
|
|
13 |
|
14 |
user_msg = "Please describe what you need to do. To get the best results try to answer all the following questions:"
|
15 |
|
|
|
|
|
|
|
16 |
def check_for_missing_answers(parsed_questions: dict[int, str]):
|
17 |
return [k for k in parsed_questions if parsed_questions[k] is None]
|
18 |
|
|
|
13 |
|
14 |
user_msg = "Please describe what you need to do. To get the best results try to answer all the following questions:"
|
15 |
|
16 |
+
# ugly HF workaround
|
17 |
+
os.system("pip install -r requirements-bin.txt")
|
18 |
+
|
19 |
def check_for_missing_answers(parsed_questions: dict[int, str]):
|
20 |
return [k for k in parsed_questions if parsed_questions[k] is None]
|
21 |
|
requirements-bin.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-win_amd64.whl ; sys_platform == "windows"
|
2 |
+
deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-linux_x86_64.whl ; sys_platform == "linux"
|
requirements.txt
CHANGED
@@ -2,5 +2,3 @@ PyPDFForm
|
|
2 |
ollama
|
3 |
transformers
|
4 |
streamlit
|
5 |
-
deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-win_amd64.whl ; sys_platform == "windows"
|
6 |
-
deps/intel_npu_acceleration_library-1.3.0-cp310-cp310-linux_x86_64.whl ; sys_platform == "linux"
|
|
|
2 |
ollama
|
3 |
transformers
|
4 |
streamlit
|
|
|
|