Spaces:
Sleeping
Sleeping
Commit
·
c3ddf65
1
Parent(s):
bb7941a
See if by moving this ugly workaround right after import os this works
Browse files
app.py
CHANGED
@@ -1,4 +1,8 @@
|
|
|
|
|
|
1 |
import os
|
|
|
|
|
2 |
import uuid
|
3 |
from pathlib import Path
|
4 |
|
@@ -13,8 +17,7 @@ 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 |
-
|
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]
|
|
|
1 |
+
|
2 |
+
|
3 |
import os
|
4 |
+
# ugly HF workaround
|
5 |
+
os.system("pip install -r requirements-bin.txt")
|
6 |
import uuid
|
7 |
from pathlib import Path
|
8 |
|
|
|
17 |
|
18 |
user_msg = "Please describe what you need to do. To get the best results try to answer all the following questions:"
|
19 |
|
20 |
+
|
|
|
21 |
|
22 |
def check_for_missing_answers(parsed_questions: dict[int, str]):
|
23 |
return [k for k in parsed_questions if parsed_questions[k] is None]
|